var str = "abcdefghijklmnopq",
name = "1",
ary = []; for(var i = 0,len = str.length;i<len;i++){ ary.push(str.substr(i,1)); //substr()一个位置i是指从声明什么位置开始,1是指取几个
} console.log(name + ary.join("1"));
05-11 21:42