热门关键字:
jquery > jquery教程 > jquery教程 > jquery 添加Html内容

jquery 添加Html内容

313
作者:管理员
发布时间:2021/1/26 15:57:46
评论数:0
转载请自觉注明原文:http://www.jq-school.com/Show.aspx?id=3471
<html>
<head>


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs
/jquery/1.4.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
  $("p").append("逗你玩");
  });
});
</script>
</head>


<body>
<h2>This is a heading</h2>
<p>我说.</p>
<p>你好.</p>
<button type="button">Click me</button>
</body>


</html>





如果您觉得本文的内容对您的学习有所帮助:支付鼓励



关键字:jQuery
友荐云推荐