var str="I love antzone ,this is animate";
var reg=/an/;
console.log(reg.exec(str));//序号是0,index,input不是0,1,2
// ["an", index: 7, input: "I love antzone ,this is animate"]
var str="I love antzone ,this is animate";
var reg=/an/;
console.log(reg.exec(str));//序号是0,index,input不是0,1,2
// ["an", index: 7, input: "I love antzone ,this is animate"]
13 回答13.1k 阅读
7 回答2.3k 阅读
3 回答1.4k 阅读✓ 已解决
6 回答1.5k 阅读✓ 已解决
2 回答1.5k 阅读✓ 已解决
3 回答1.5k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
Array是可以用非數字做index的. js是這樣的習慣就好了.