1.string方法search(),replace(),match()  RegExp对象中有exec()和test()方法 它们除了有input和Index外 还有lastIndex紧接在那个匹配之后的字符的位置。(只有带g标志的正则表达式才会发生这种特殊的lastIndex,如果RegExp对象没有标志g,exec()和test()将忽略它的lastIndex属性)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2021-11-03
  • 2021-11-22
  • 2021-10-15
  • 2021-10-19
猜你喜欢
  • 2021-05-14
  • 2022-01-30
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
相关资源
相似解决方案