Using XMLHttpRequest to read a local file error

Use the Chrome browser to open this error:

 

 

 

 Right-click on the shortcut and select Properties chrome, the "target" column add --allow-file-access-from-files, as shown, pay attention to use a space separated from the previous content, but also to pay attention to click application rather than OK.

 

 

Guess you like

Origin www.cnblogs.com/-xiao/p/11680341.html