日期:2014-05-16  浏览次数:20318 次

请问这个怎么运算
onkeydown= "if(event.keyCode==13)   window.location= 'template2.php?categoryId={$smarty.get.categoryId}&keyword={$smarty.get.keyword}
&time={$smarty.get.time}&start=( '+this.value+ '-1)*{$pageLimit}&limit={$smarty.get.limit}&orderBy={$smarty.get.orderBy}&order={$smarty.get.order}
&act={$smarty.get.act}&senddate={$smarty.get.senddate}&color= '+this.value; "

( '+this.value+ '-1)*{$pageLimit}那个位置显示的值是(12-1)*30就是显示这样的东西,,它不进行运算,我该怎么做呢?我想得到11*30=330

------解决方案--------------------
parseInt( '+this.value+ '-1)*{$pageLimit}