feat:当传的值是null 时 不显示

This commit is contained in:
zhangyu
2020-09-29 14:05:18 +08:00
parent e6321f464a
commit 520c020df9
2 changed files with 4 additions and 1 deletions

View File

@@ -323,6 +323,9 @@ function days(value,index,type=1,dot){
* dot保留的小数位
* */
function asciiCompute(num,ascii,units,dot=2){
if(!num && num!==0 && num!=='0'){
return ''
}
num=Number(num)
let carry=0;
if(num > 1){