Highway without data storage

I am working on a standalone javascript application. It must support IE7, so localStorage is not an option. However, the application does NOT need to save any information (if you update everything that you wipe, and this is normal).

So my question is: how do I configure Backbone to use the standard javascript variable (JSON) as a data store?

If I omit the model.url () method, I get an error. I think it's simple, but I'm not sure what to do.

Thank!

+5
source share
2 answers

, localStorage, , Backbone.sync. Backbone, /// new, save, fetch ..

RESTful, url . LocalStorage, .

, Backbone.sync , , "", "", "" "". backbone-localstorage.js, , , / id/object/value.

+3

save create.

store add. .

+2

All Articles