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