摘要: 辅助方法(解决模板不能访问全局对象的问题) 使用 template.helper(name, callback) 注册公用辅助方法,例如一个访问全局变量jQuery的方法: template.helper('getJquery', function () { return $; }); templa 阅读全文
posted @ 2017-08-29 14:17 欧辰0312 阅读(576) 评论(0) 推荐(0) 编辑