We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// 数据优化过滤器 template.defaults.imports.dataOptimize = function (data) { var resultData = '' if (+data > 999999) { resultData = (+data / 10000).toFixed(0) + '万' } else if (999999 >= +data > 9999) { resultData = (+data / 10000).toFixed(2) + '万' } else { resultData = +data } return resultData }
else if (999999 >= +data > 9999) { resultData = (+data / 10000).toFixed(2) + '万' } 这个判断条件不生效
换成这种写法生效 else if (999999 >= +data && +data > 9999) { resultData = (+data / 10000).toFixed(2) + '万' }
The text was updated successfully, but these errors were encountered:
你的问题似乎和模板没关系?
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: