$.ajax({ url: 'SecAddressPost.aspx',
                type: 'POST',
                data: { RealName: RealName, Province: Province, City: City, District: District, Address: Address, Postcode: Postcode, Phone: Phone, Mobile: Mobile },
                    dataType: 'html',
                    timeout: 1000,
                    success: function(data) {
                      这里对从后台返回你的data,格式随你定义。
                    }
                });

解决方案 »

  1.   


    $.ajax({ url: 'SecAddressPost.aspx',
                    type: 'POST',
                    data: { RealName: RealName, Province: Province, City: City, District: District, Address: Address, Postcode: Postcode, Phone: Phone, Mobile: Mobile },
                        dataType: 'html',
                        timeout: 1000,
                        success: function(data) {
                            if (data == "YES") {
                                显示信息
                                $("div").html(data);//也可以将数据放入到文本域中显示
                            }                               
                        }
                    });
      

  2.   

    所噶多谢楼上2位如果我想放入foreach那里呢。。
      

  3.   

    保存时请求后台,获取是否已经全部信息填写完成。如果不需要再填写则动态更新DOM显示所有的收货地址就可以了动态更新DOM,该移除的就移除,该添加就添加,已经使用了JQ 操作起来就非常简单了