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

Juicer Render Exception: Cannot read property 'call' of undefined #111

Open
sn01615 opened this issue May 23, 2016 · 0 comments
Open

Juicer Render Exception: Cannot read property 'call' of undefined #111

sn01615 opened this issue May 23, 2016 · 0 comments

Comments

@sn01615
Copy link

sn01615 commented May 23, 2016

我使用了register注册了个方法:

juicer.register('xxxxxxxxx', function(num) {
    if (num < 0) {
        return 0;
    } else {
        return num;
    }
});

然后这个样使用这个方法
${it.d_price|xxxxxxxxx}

但是报错

Juicer Render Exception: _method.xxxxxxxxx is not a function

难道是版本太低了?
/*
********** Juicer **********
${A Fast template engine}
Project Home: http://juicer.name

Author: Guokai
Gtalk: [email protected]
Blog: http://benben.cc
Licence: MIT License
Version: 0.4.0-dev

*/

bower install PaulGuo/Juicer
bower 安装的版本太低了

我升级到0.6.14了
但是还是报错

Juicer Render Exception: Cannot read property 'call' of undefined

@sn01615 sn01615 closed this as completed May 23, 2016
@sn01615 sn01615 reopened this May 23, 2016
@sn01615 sn01615 changed the title juicer.register无法使用 Juicer Render Exception: Cannot read property 'call' of undefined May 23, 2016
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