js 字符串转数组

    var obj = "123456".replace(/(.)(?=[^$])/g, "$1,").split(",");
 

     console.log('obj',obj)

posted @ 2018-01-11 14:23  abcByme  阅读(10869)  评论(0编辑  收藏  举报