在steal.build - JMVC期间未定义localStorage

时间:2012-03-06 21:17:12

标签: javascript javascriptmvc

$ ./js steal/buildjs myapp/myapp.html -to myappBuild

Building to myappBuild/
failed to open file  file:/socket.io/socket.io.js   JavaException: java.io.FileNotFoundException: /socket.io/socket.io.js (No such file or directory) 
!!!!!!!!!!! ERROR !!!!!!!!!!!

-message    = "localStorage" is not defined.
-fileName   = file:////home/*****/sample.js
-lineNumber = 34
-name       = ReferenceError

              error loading html element  [object HTMLScriptElement]   ReferenceError: "localStorage" is not defined. 
sample.js

,我只是使用getItem() localStorage来检索数据。

任何想法如何解决这个问题?我怎样才能定义" localStorage

0 个答案:

没有答案