javascript 使用 angularjs 和 ionicframework 解析远程或本地 XML
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23603548/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Parsing remote or local XML using angularjs and ionicframework
提问by Niranjan Balkrishna Prajapati
New to angularjs and started working on creating application where data will be received by xml which is located on server.
angularjs 新手并开始致力于创建应用程序,其中数据将由位于服务器上的 xml 接收。
I searched a lot about xml parsing in angularjs using IONIC framework. But didn't get solution.
我在 angularjs 中使用 IONIC 框架搜索了很多关于 xml 解析的信息。但没有得到解决。
Can anyone provide me with tutorial or example it would be great.
任何人都可以为我提供教程或示例,这会很棒。
回答by psimons
If you can switch to REST/JSON on the server it is pretty much the norm nowadays for communicating to/from js apps and much, much easier to handle on the client.
如果您可以在服务器上切换到 REST/JSON,这几乎是当今与 js 应用程序进行通信的标准,并且在客户端上更容易处理。