<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>jtemplates jquery模板引擎使用-LIEHUO.NET</title>
<script src="/Scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script src="/Scripts/plugins/jquery-jtemplates.js" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function() {
var data = [{ name1: "测试信息",id:"12" },{ name1: "测试信息",id:"12" }];
$("#result").setTemplateElement("template1");
$("#result").processTemplate(data);
});
</script>
</head>
<body>
<div>
<textarea ></div>
</body>
</html>

相关文章:

  • 2021-07-09
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-05-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-23
  • 2021-08-23
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-10-09
  • 2021-07-11
相关资源
相似解决方案