jquery简单异步读取xml文件

 $.ajax({
            url: '../XmlFiles/Sm.xml',
            async: true,
            cache: false,
            dataType: 'xml',
            error: function (error) { alert(error); },
            success: function (xml) {
                $('#TextArea1').val($(xml).find("content").text());
            }
        });

posted @ 2013-08-07 20:36  aiaito  阅读(134)  评论(0编辑  收藏  举报