html 解析json数据模板工具存在的问题

html 解析json数据模板工具存在的问题

主要用测试:

jquery-jtemplates

art-template


1. 查看源码,还是看到它的标签,并不是生成后的文件
2. 它的变量不能作为别的参考往下传(art-template)。
                    {#foreach $T.table as record}
                    <tr>
                    {#foreach $T.title as t}
                    <td>  {$T.record['{$P.x}']}</td>
                    {#/for}
                    
                    {$T.record['name']}这样是可以,但name不能动态传.
3. 不能通过下标遍历数组。查了下jsp的foreach标签,像也不行。  struts2的标签像是可以。

4. 用foreach循环输出form表单,不可以序列化生成json.  测了静态写的多两个表单是可以的。
   要将整个table放到一个form才可以。  这样会有多个form,格式对不齐。

猜你喜欢

转载自blog.csdn.net/abckingaa/article/details/88698815