gpt4 book ai didi

javascript - ionic 框架 : Parse xml from responseText

转载 作者:行者123 更新时间:2023-12-03 10:42:48 24 4
gpt4 key购买 nike

我从 XMLHttpRequest 获取一些 xml 行使用 JavaScript 的对象。结果,我从responseText属性中得到一个字符串。我如何设法从此字符串中获取信息?

<items>
<item info="value" info="otherValue" />
<item info="value" info="otherValue" />
<item info="value" info="otherValue" />
</items>

最佳答案

通过使用 ajax from jquery 获取 xml 内容,我终于摆脱了麻烦。 .

关于javascript - ionic 框架 : Parse xml from responseText,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28699834/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com