A few days ago learning Jqm+phonegap, with a jquery plug-in Jsrender, (because the app can not use the ASP. NET server control, so I am also drunk ...) ) to cycle through the data.
Here are a few simple uses I've used:
Code Belows
<!--step one--> <script src="Js/lib/jquery-2.1.3.js"></script><script src="Js/lib/jsrender.js"></script><!--Step Two--><script type="Text/x-jsrender"Id="Tmpl"> <li><p> anonymous:{{:contents}}</p> <p>{{:~cvt (times)}}</p> </li></script>//Step three//the JSON object returned by M for Ajax varHTML = $ ("#tmpl"). Render (M, {cvt:addsome});//HTML after the loop of HTML code, CVT can pass the JS method to the template callfunction Addsome (time) {return "Time:"+Time ;}
Note that the Jsrender function is very powerful (said to be much faster than jstemplate rendering speed), but I caishuxueqian ah, I only use one of the lost ...
jquery Template Plugin Jsrender