$.parseXML not working with valid xml

女生的网名这么多〃 提交于 2019-12-05 03:34:17

dataType
Default: Intelligent Guess (xml, json, script, or html)

"xml": Returns a XML document that can be processed via jQuery.

The $.ajax() function relies on the server to provide information about the retrieved data. If the server reports the return data as XML, the result can be traversed using normal XML methods or jQuery's selectors. If another type is detected, such as HTML in the example above, the data is treated as text.

The result should already be parsed.

If you specifically don't want it to be parsed, use a different dataType.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!