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

三元运算会出错,没有加空格 #5

Open
myfengstyle opened this issue Aug 1, 2018 · 0 comments
Open

三元运算会出错,没有加空格 #5

myfengstyle opened this issue Aug 1, 2018 · 0 comments

Comments

@myfengstyle
Copy link

myfengstyle commented Aug 1, 2018

{{order_prize<prize_show?'¥'+prize_show+'-¥'+_prize_show:'¥'+prize_show}}

这样提示错误
改成

{{order_prize < prize_show ? '¥'+prize_show+'-¥'+_prize_show : '¥'+prize_show}}

就可以了(加了空格)

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