var mathFormat = function (num) { var patt = getRegExp('\.','g'); var formatnum if(!patt.test(num)){ formatnum= num }else{ formatnum= Number(num).toFixed(1)||'--'; } return formatnum } var initItemNum = function(project,value,name) { // var specialProject=["Pj1101080259"]; /* console.log(project,'project222'); var specialProject=["VOTn11010802592ab7d57ca79b47ee95a0b9eb1cd6a902"]; var falg=false; for(var i=0;i