问题描述
新Javascript OData库比使用jQuery有什么好处?
What is the benefit of the new Javascript OData library over using jQuery?
推荐答案
jQuery非常擅长它的功能,datajs不会尝试复制它的任何功能,因此很难用这些术语回答这个问题。
jQuery is very good at what it does and datajs doesn't try to duplicate any of its features, so it's hard to answer the question in those terms.
datajs目前实现了广泛的OData支持,包括多种格式,支持解析概念模型,在元数据已知时增强结果的能力,批处理等等。
datajs currently implements extensive OData support, including multiple formats, support for parsing conceptual models, the ability to enhance results when metadata is known, batch handling, etc.
jQuery支持JSON使用,但这真的只是编码问题 - 不支持任何特定于OData的行为。如果您正在与OData服务器交谈,那么最好使用datajs,然后您可以将jQuery用于其他所有内容:动画,文档构建,控件,模板等。
jQuery supports JSON usage, but that's really just a matter of encoding - there is no support for any OData-specific behavior. If you're talking to an OData server, you'll be better off using datajs, and then you can use jQuery for everything else: animations, document building, controls, templating, etc.
这篇关于与jQuery相比,新的oData javascript库(来自MSFT)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!