在我当前的代码中,我从 PersistJS 收到以下错误:
Line 829 Persist.js: Uncaught TypeError: Object # has no method 'init'
当我使用任何函数时都会发生这种情况,在我正在执行的示例中:
var store = Persist.Store('test');
最佳答案
根据this您缺少的文档new
var store = new Persist.Store('test');
关于javascript - 坚持JS : Uncaught TypeError: Object #<Object> has no method 'init' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21243424/