$ ./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
?