jquery 添加Html内容
<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>
<h3>This is a heading</h3>
<p>我说.</p>
<p>你好.</p>
<button type="button">Click me</button>
</body>
</html>
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。