var reg = /d+/;var str = 'ac123abc456abc';var result = reg.exec(str);console.log(result);//=> result: ["123", index: 2, input: "ac123abc456abc", groups: undefined]//=> groups 作用是什么?
明月笑刀无情
相关分类