标签:c java ext http a javascript
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="Scripts/jquery-1.4.1.js"
type="text/javascript"></script>
<script type ="text/javascript"
>
$(function() {
$("#btnOk").click(function() {
var title = $("#title").val();
var tbBody =
$("#tbBody").val();
var tb = $("<tr><td>" + title +
"</td><td>" + tbBody + "</td></tr>");
$("#tbContent").append(tb);
$("#title").val("");
$("#tbBody").val("");
});
});
</script>
</head>
<body>
<p
id="tbContent">
第一个帖子:随碟附送地方</p>
<table >
<tr>
<td>
<input type="text"
id="title" />
</td>
<td >
<input type ="text" id ="tbBody" /><input type ="button" id
="btnOk" value ="确定" />
</td>
</tr>
</table>
</body>
</html>
标签:c java ext http a javascript
原文地址:http://www.cnblogs.com/sumg/p/3742749.html