Open geeeger opened 4 years ago
let p = /a/gi; p.test('ab'); // => log true p.test('ab'); // => log false
原因: using test() on a regex with the "global" flag
原因: using test() on a regex with the "global" flag