extJS4 Ext.Ajax 和 Ext.data.proxy.Ajax 之间的区别
我是 extJS 框架的新手,在查看这两个类之后,我很好奇什么时候使用其中一个更好。一种是提交更好,一种是获取更好?在我目前的情况下,我使用的是网格,api 说使用我信任的 proxy.Ajax。但是假设我想将 JSON 发送回数据库,使用 Ext.Ajax 会更好吗?
另外,我对 JSON 相当陌生,我知道它本质上只是一个带有正则表达式的字符串。如果我不想在本地存储 json,将 json 直接发送到数据库的最佳方法是什么?
I am new to the extJS framework and after looking at these two classes I am curious when it is better to use one or the other. Is one better for submitting and one for getting? In my current situation I am using a grid and the api says to use the proxy.Ajax which I trust. But lets say I want to send the JSON back to a database, would I be better off using Ext.Ajax?
Also I am rather new to JSON I understand that its just a string with regular expressions essentially. What is the best way to send the json straight to a database if I don’t want to store the json locally?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Ext.Ajax
用于向服务器发出一次性请求。您可以将其用于 GET 和 POST 请求。Ext.data.proxy.Ajax
由数据包使用,特别是Ext.data.Store
。您不能“手动”使用此功能。您必须通过数据包使用它。Ext.Ajax
is used to make one-off requests to a server. You can use this for GET and POST requests.Ext.data.proxy.Ajax
is used by the data package, in particular,Ext.data.Store
's. You cannot use this 'manually'. You must use it via the data package.