<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
  $("p").html("W3School");
  });
});
</script>
</head>

<body>
<h2>This is a heading</h2>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<button type="button">请点击这里</button>
</body>

</html>

 

相关文章:

  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-11-30
  • 2022-12-23
  • 2022-01-23
  • 2021-11-22
猜你喜欢
  • 2021-06-27
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案