61,115
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<script type="text/javascript" src="script/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#Button1").click(function() {
$("#test1").text(function(i, origText) {
return "origText:" + origText + "newText:" + "Hellow World(index:" + i + ")";
});
});
});
</script>
</head>
<body>
<button id="Button1">Button1</button>
<p id="test1">adasdfadsf</p>
</body>
</html>