问题
Since less than a week ago jQuery Mobile made an automatic update that made it very difficult to debug without using a web server to run the application. To code I used to only open the .html file in the web browser as a simple document and I could debug, but now I need to run it in a web server to make it work, it keeps sending this message when I open it as a simple file:
Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///C:/Users/LL402/Desktop/index.html' cannot be created in a document with origin 'null'.
Does someone know how to fix this? I hate using a server to test a simple web application.
来源:https://stackoverflow.com/questions/32439759/new-update-of-jquery-mobile-needs-a-web-server-to-run