art-template icon indicating copy to clipboard operation
art-template copied to clipboard

在requireJS 如何注册过滤器

Open remberi opened this issue 5 years ago • 0 comments

我在尝试用requireJS+art-template 搭建一个应用,但是在创建过滤器的时候出现了异常,我尝试把赋值语句提前也没有用, require(['index','art-template'], function (i,template) { console.log("初始化"); if (typeof (template) != "undefined") { template.defaults.imports.createListDir = function (i, obj, pageid) { ......... } }); image

remberi avatar Jun 03 '20 08:06 remberi