1 var div = document.getElementById("myDiv");
2 var comment = div.firstChild;
3 console.log(comment.data);
4 console.log(comment.nodeValue == comment.data);

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
猜你喜欢
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-08-21
  • 2022-12-23
相关资源
相似解决方案