gpt4 book ai didi

javascript - Ajax 获取 XML 数据类型比 Json 有什么优势吗?

转载 作者:行者123 更新时间:2023-12-02 20:12:44 26 4
gpt4 key购买 nike

使用 Ajax 获取 XML 格式的数据比 Json 格式有什么优势吗?
我们现在应该称其为 Ajaj 吗?

最佳答案

不,使用 XML 相对于 Json 根本没有优势。与 XML 相比,等效数据的占用空间(内存、数据量)更小,因此它很受欢迎。

Json 代表 X 时,仍使用

AJAX ;)

来自wikipedia :

Despite the name, the use of XML is not needed (JSON is often used instead), and the requests need not be asynchronous.[

关于javascript - Ajax 获取 XML 数据类型比 Json 有什么优势吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6767387/

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