javascript jquery 修改指定标签中的内容

$("#test1").text("Hello world!");
document.getElementById("test1").innerHTML="New text!";

相关文章:

  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-06-04
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案