首页 > 代码库 > JS模板语言不错的脚本

JS模板语言不错的脚本

<html>
<script src="http://www.mamicode.com/template.js"></script>
<head>

</head>
<body>
<div id="content"></div>
</body>
</html>


<script id="test" type="text/html">
<h1>{{title}}</h1>
<ul>
    {{each list as value i}}
        <li>索引 {{i + 1}} :{{value}}</li>
    {{/each}}
</ul>
</script>
<script>
var data = http://www.mamicode.com/{>

http://cdc.tencent.com/?p=5723

JS模板语言不错的脚本