- 1.实现一个debug函数
$.views.helpers({
"debug" : function() {
var info = "debug helper";
}
});
- 2.在info处加上断点
- 3.在需要的地方使用 {{:~debug(someobj)}}
![](http://static.oschina.net/uploads/space/2014/1028/155138_9iCM_780719.jpg)
$.views.helpers({
"debug" : function() {
var info = "debug helper";
}
});
转载于:https://my.oschina.net/wamdy/blog/338163