日期:2014-05-17  浏览次数:20494 次

asp.net jquery ajax 取返回值并处理 .............................................在线等

$.ajax({
                    type: "Post",
                    url: "bannerCalling.aspx/updateISelfBanner",
                    data: "{'bannerValue':'"+bannerValue+"'}",
                    contentType: "application/json; charset=utf-8",
                    dataType: "html",
                    success: function(getValues) 
                    {
                        alert(getValues);
                        $("#igoods").html(getValues); 
                    },
                    error: function(err) 
                    {
                        alert(err);
                    }
                });  


其中:alert(getValues);值为:

"{"d":"\u003cdiv class=\"igoods-list\"\u003e                                        \u003cdiv class=\"ichild\"\u003e                                            \u003cdiv class=\"igoods-img\"\u003e                                                \u003ca href=\"#\"\u003e                                                    \u003cimg src=\"../../../clientWeb/hellenren/IMAGE/bannerImg/1.1.2.png\" /\u003e\u003c/a\u003e\u003c/div\u003e                &nb