相关疑难解决方法(0)

jQuery ajax发布到Web服务

$(document).ready(function() {
        $.ajax({ type: "POST",
                        url: "/getprojects.ashx",
                        data: "<formData client=\"\" year=\"\" categories=\"\" tags=\"\" freeText=\"\" count=\"34\" page=\"1\"></formData>",
                        dataType: "text/xml",
                        cache: false,
                        error: function() { alert("No data found."); },
                        success: function(xml) {
                            alert("it works");
                            alert($(xml).find("project")[0].attr("id"));
                        }
        });
    });
Run Code Online (Sandbox Code Playgroud)

我的问题是我得到一些数据,但我似乎无法显示它.

xml ajax jquery web-services ashx

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

ajax ×1

ashx ×1

jquery ×1

web-services ×1

xml ×1