搜索了一下有个jquery tmpl插件可是似乎不再支持了
有不想用js 拼凑字符串
有什么好方法吗?
有不想用js 拼凑字符串
有什么好方法吗?
|
1
|
|
2
|
|
refreshJun 9, 2013
3
还有handlebars等等一堆的模板引擎,或者用jQuery与underscore的template
|
|
4
doT.js很不错!
|
|
maddotJun 9, 2013
5
在服务器端生成html片段也是一个方法吧
|
|
6
这种时候不推荐 http://angularjs.org/ 是不科学的。这才是最好的模版。
|
|
7
hogan
|
|
greatghoulJun 9, 2013
8
mustache +1
coffee +1 angularjs +1 |
|
fitureJun 9, 2013
9
你不知道有模板么?
|
|
lerryJun 9, 2013
11
|
|
12
|
|
unstopJun 9, 2013
13
@lerry 别用这个,我之前在项目里面用过这个,很难用,很难维护,最后不得不换,现在切换成了 http://aui.github.io/artTemplate/ 还算可以。
|
|
ParanoidJun 9, 2013
14
AngularJS 服务端json, 客户端数据绑定,自动更新template。
|
|
SivanJun 10, 2013
15
handlebars.js
|
|
zhujinliangJun 10, 2013
16
我们这的哥们一行一行document.write都写了,楼主这算啥。。。
|
|
17
|
|
magic22cnJun 11, 2013
20
js模板怎么应对搜索引擎?
|
|
ehaagwlkeJun 12, 2013
21
用AngularJS吧,再好用不过了。
|
|
xianghekaJun 12, 2013
22
jqote2 和jtemplate类似
|
|
raptorJun 13, 2013
23
jquery的template好像已经被废了。我只用underscore,貌似还可以。
|
|
juicyJun 13, 2013
24
jquery的template只是不再在官网推荐了吧,github上还是有那个项目的,想用还是可以用的~~
|
|
jackheJun 13, 2013
25
jsrender
|