这个xml有问题吗??
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<results xmlns="http://www.host.com/type">
<result>
<attr value="" name="TitleBlock1"/>
<attr value="" name="TitleBlock2"/>
<attr value="Introductory" name="rev"/>
</result>
</results>
当我从服务器收到响应时......当我签入萤火虫时,它是说
XML Parsing Error: no element found Location: moz-nullprincipal:{3c06a977-b497-5c43f72584c8} Line Number 1, Column 1:
^
因为我没有从服务器收到任何响应,而且我收到了 200 Ok 请求这个 urlhttps://rest-search.host.com/machine/search/meta?id=TR
但没有响应。这是下面的代码
var search_agile_metadata= 'https://rest-search.host.com/m/search/meta?id=';
var on_show_info_agile = function() {
request_meta_info = $.ajax({
url: data + current_doc_info.id,
type: 'GET',
success: data,
error: data
});
};
所以想改变 url 来获得 json 响应。当我将 dataType 更改为 script 时,我得到了响应,但出现了错误missing ; before statement
。我不知道我做错了什么