let sNumber = this.datas.toString()
var data = []
for (var i = 0, len = sNumber.length; i < len; i += 1) {
data.push(+sNumber.charAt(i))
}
let sNumber = this.datas.toString()
var data = []
for (var i = 0, len = sNumber.length; i < len; i += 1) {
data.push(+sNumber.charAt(i))
}
本文标题:js将数字分割成数组
本文链接:https://www.haomeiwen.com/subject/tioltrtx.html
网友评论