当前位置: 动力学知识库 > 问答 > 编程问答 >

Fetching data from xml using backbone.js

问题描述:

I'm not able to fetch data from xml using backbone.js. No proper example is given on the sites I checked.

网友答案:

Take a look at BackboneJS with XML ajax

Basically, you need to overwrite the model/collection's parse method to build an object form the XML response.

In addition, you need to overwrite the requested data type, as it is json by default.

分享给朋友:
您可能感兴趣的文章:
随机阅读: