标签:ons join -- join() 转化 console log eve let
const number =1000000;
let str = number.toString();
str.slice()
<!-- let temp=number;
let digit;
let str=‘‘;
let i = 0;
do{
digit=temp%10;
if(i%3==0){
str+=‘,‘+digit;
}else{
str+=digit;
}
temp=temp/10;
console.log(digit,temp);
i++
}while(temp>1);
digit=temp%10;
str+=digit;
console.log(str.split(‘‘).reverse().join())
-->
标签:ons join -- join() 转化 console log eve let
原文地址:http://www.cnblogs.com/heinz-lxy/p/6888845.html