success: function(msg)函数问题
小第刚接触jquery还望大家指教
我在后台
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
Response.Write(1);
Response.End();
}
-------------
前台
$.ajax({
type:"POST",
url:"Commodity.aspx",
success: function(msg){
if(msg == "1")
document.body.removeChild(iObj);
document.body.removeChild(cObj);
}
});
这样能接收到响应Response返回数据吗?谢谢