List templates
<script id= "Tbtmpl" type= "Text/x-jquery-tmpl" > <tr> <td>${Id}</td> &L t;td>${name}</td> <td>${ParentName}</td> <td> <select C lass= "Move" style= "Width:auto;" Data= "${id}" >{{each (I,V) Count}}}<option value= "${i+1}" {{ifRank = = i+1}}selected= "Selected" {{/if}}>${i+1}</option> {{/each}} </select> </td> <td> <div class= "Btn-grou P "> <a href=" javascript:; "class=" btn btn-small btn-info Edit "Data=" ${id} "> Modify </a> <a href= "javascript:;" class= "Btn btn-small btn-danger del" Data= "${id}" > Delete </a> & lt;/div> </td> </tr> </script>
Nested Select option Templates
<script id= "Optiontmpl" type= "Text/x-jquery-tmpl" > <option value= "${id}" >${Name}</option> </script>
Count is the length of the returned data, the variable needs to be defined
jquery template nested template, generate select to adjust sorting values