我被检查出一个HTML页面的源和过这个html脚本标记不使用类型javascript <script type =“text/html”>?
<script id="searchItemTemplate" type="text/html">
<# var rows = Math.floor((Model.RecordsPerPage - 1)/3 + 1);
for (var i = 0; i < rows; ++i){
var startIdx = i * 3;
var endIdx = startIdx + 3;
#>
//etc ....
</script>
我以前从未见过这来了。什么是脚本type="text/html"
。我不知道它是否有所作为,但是这是在.aspx页面上。
这是某种形式的占位符被解析和eval()以后?
有谁知道这是什么?
有谁可以使用这种方法解释好处?
BTW,[Processing.js](http://processingjs.org/)也使用这种技术。 – CMS 2010-07-13 21:00:50