Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在requireJS 如何注册过滤器 #620

Open
remberi opened this issue Jun 3, 2020 · 0 comments
Open

在requireJS 如何注册过滤器 #620

remberi opened this issue Jun 3, 2020 · 0 comments

Comments

@remberi
Copy link

remberi commented Jun 3, 2020

我在尝试用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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant