define([ "handlebars","ember"], function(Handlebars,Ember) {
Ember.Handlebars.registerHelper('judgeStatus', function(value) {
alert(value);
var result = value;
return new Handlebars.SafeString(result);
});
});
Uncaught [object Object] handlebars.js:706 verifyMatch
require.js
如何编码时,需要Handlebars Helper吗?
答案 0 :(得分:1)
define(["ember",], function(Ember) {
Ember.Handlebars.registerBoundHelper('judgeStatus', function(value) {
var result = '';
return new Ember.Handlebars.SafeString(result);
});
});