|
123456789101112131415 |
- /**
- * 添加模板辅助方法
- * @name template.helper
- * @param {String} 名称
- * @param {Function} 方法
- */
- template.helper = function (name, helper) {
- helpers[name] = helper;
- };
-
- var helpers = template.helpers = utils.$helpers;
-
-
-
-
|