<div id="messagelist">
messagelist
</div>
<div>
用户名:<input id="txtName" type="text" />
密码:<input id="txtPWD" type="text" />
<input id="Submit1" type="submit" value="submit" />
</div>
$.ajax({
type: "post",
url: "MessageBoardHandler.ashx?action=add",
data: "msg_nickname=" + escape(name) + "&msg_content=" + escape(pwd) + "&msg_time=" + msg_time + "&msg_face=" + pwd,
success: function (msg) {
alert(msg);
//在table中新增一行
if (msg == "success") {
alert("1");
alert($("#messagelist"))
$("#messagelist").append("Test");
alert($("#messagelist").html())
alert("2");
主要的是在HTML页面中能够显示这个新增的的“Test”,但是在aspx页面中无法显示这个“Test”,而且查看这个html内容的时候,能够显示
侃侃无极
MM们