Backbone Local Storage “undefined is not a function”

前端 未结 2 1826
一生所求
一生所求 2021-01-03 00:50

I am using Backbone.LocalStorage: http://jsfiddle.net/jiewmeng/grhz9/3/

$(function() {
    console.log(Backbone.LocalStorage); // undefined!         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 01:36

    The other answer is correct - 1.0 is out of date.

    I've updated backbone.localstorage to the latest version:

    http://cdnjs.cloudflare.com/ajax/libs/backbone-localstorage.js/1.1.0/backbone.localStorage-min.js (production)

    http://cdnjs.cloudflare.com/ajax/libs/backbone-localstorage.js/1.1.0/backbone.localStorage.js (dev)

    Hope that helps!

提交回复
热议问题