问题描述:

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.

相关阅读:
Top