JSON数据不会在本地主机的Chrome浏览器

问题描述:

的的KitchenSink例子显示在我的Chrome浏览器 http://cdn.sencha.io/touch/sencha-touch-2.1.0/examples/kitchensink/index.html#demo/jsonpJSON数据不会在本地主机的Chrome浏览器

工作正常,但是当我下载了它的代码和本地服务器上运行,但它仍然在数据加载的状态。 enter image description here

,因为您在JavaScript获得跨起源错误的

其...

Go to your chrome shortcut -> right click -> properties -> shortcut 

改变目标字段从:

"C:\Users\boris.d\AppData\Local\Google\Chrome\Application\chrome.exe" 

"C:\Users\boris.d\AppData\Local\Google\Chrome\Application\chrome.exe --allow-file-access-from-files" 

,它将为你工作:-)

+0

非常感谢你:)它工作。 –

+0

欢迎您! – BorisD