开发者

Does jTemplates foreach preserve the ordering of the collection?

开发者 https://www.devze.com 2022-12-31 20:11 出处:网络
My collection is ordered alphabetically, but when I assign the collection and load the html using jquery jtemplates, things are coming out un-or开发者_如何学运维dered.

My collection is ordered alphabetically, but when I assign the collection and load the html using jquery jtemplates, things are coming out un-or开发者_如何学运维dered.

  {#foreach $T.results as r}
      <li>{$T.r.Name}</li>
 {#/for}

Is this expected behavior?


Nope

What server code are you using to prepare and send the collection?

0

精彩评论

暂无评论...
验证码 换一张
取 消