if($.trim($("#TextArea1").val())=="") { alert("跟进内容不能为空!"); } else{ $(a).html("提交中。。"); $.post("addgj.ashx", {"str":$("#TextArea1").val(),"userid":$("#Text1").val()}, //参数如此传递 function(msg) { //注意是msg.d.sth.) $(".gjjl").append("<span οnmοuseοver='javascript:changecolor(this);'>"+msg+"</span>"); $("#TextArea1").html(""); }); $(a).html("添加"); } context.Response.ContentType = "text/plain"; string str = context.Request.Params["str"].ToString(); string id = context.Request.Params["userid"].ToString(); //根据不同需求 传入不同参数 。 存入数据库跟进信息后在做返回值 context.Response.ContentEncoding = System.Text.Encoding.Default; context.Response.Cache.SetCacheability(HttpCacheability.Public); context.Response.BufferOutput = false; context.Response.Write(str+" 用户ID:"+id); <globalization requestEncoding="utf-8" />