摘要:
//分位符 formatMoney(value) { if (value) { let intPart = null let intPartFormat = null if(value.toString().indexOf('.') != -1){ value = ( parseInt( value 阅读全文
摘要:
一、数组转字符串用join() var a, b; a = new Array(0,1,2,3,4); b = a.join("-"); //"0-1-2-3-4" 二、字符串转数组用split() var s = "abc,abcd,aaa"; ss = s.split(",");// 在每个逗号 阅读全文