• 1. 编写模板 template.html
  • 2. 执行: tpl template.html ./seajs/test.tpl.js --fn testTpl
  • 3. 修改页面index.html,添加test.tpl.js的script标签
  • 4. 编写运行文件run.js