JS 中 带引号、逗号字符串 split的问题

日期:2018-04-16 12:22:50 人气:1

JS 中 带引号、逗号字符串 split的问题

var your_string="Hello,world,oh!"; var result = []; while(your_string.match(/.?\,/)){ result[]=your_string.match(/.?\,/); your_string=your_string.replace(/.?\,/,""); }
    A+
热门评论