Har*_*rry 2 javascript meteor spacebars
试图制作一些简单的把手帮手
Handlebars.registerHelper('if_eq', function(context, options) {
if (context == options.hash.compare)
return options.fn(this);
return options.inverse(this);
});
Run Code Online (Sandbox Code Playgroud)
得到这个错误.
ReferenceError: Handlebars is not defined
Run Code Online (Sandbox Code Playgroud)
什么是正确的方法.
| 归档时间: |
|
| 查看次数: |
2891 次 |
| 最近记录: |