1

What are the methods or approaches that I should use in order for me to get data from JSON file locally.

$.getJSON works fine in firefox, however chrome doesn't work unless you run on localhost.

I want to run it properly in chrome(Since android uses chrome) without using localhost servers such as xampp, and also run it on safari(iOS uses safari).

I'll run this on android and iOS

4

1 回答 1

6

嗨 Jed 我猜你需要使用JSONP

另外,这是关于 JSONP的另一个链接。

我希望这有帮助。

于 2013-11-29T09:47:47.493 回答