在执行个js语句时候报错:

  • 报错语句:
js('document.querySelector("[class] [tabindex='0']:nth-child(2) span").setAttribute("title","content")')

纠错后,发现是因为单引号' 没有转译造成的

  • 修改后:
js('document.querySelector("[class] [tabindex=\'0\']:nth-child(2) span").setAttribute("title","content")'),转译这里的单引号即可[tabindex=\'0\']

相关文章:

  • 2021-08-24
  • 2021-05-06
  • 2021-05-22
  • 2021-10-18
  • 2021-09-29
  • 2022-01-04
  • 2022-12-23
  • 2021-05-18
猜你喜欢
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
相关资源
相似解决方案