2012-04-23 62 views

回答

4

使用$index

$index - index of the element in the table 
$iteration - ID of the iteration (the next number begins from 0) 
$first - is this the first iteration? 
$last - is this the last iteration? 
$total - the total number of iterations 

{#foreach $T.Rows as row} 
    $T.row$index 
{#/for} 

阅读http://www.codeproject.com/Articles/45759/jQuery-jTemplates-Grid

+0

prefectly合作。非常感谢你! – tempid 2012-04-23 18:06:22