我正在尝试使用 Markit on demand Api 进行简单的股票搜索,但是当我尝试通过 API 访问数据时,我在 JSON 上得到“Uncaught SyntaxError: Unexpected token:”。错误中返回的 JSON 是正确的:
{"Data":{"Status":"SUCCESS","Name":"Apple Inc","Symbol":"AAPL","LastPrice":482.73,"Change":-0.0199999999999818,"ChangePercent":-0.00414293112376285,"Timestamp":"Fri Sep 27 15:59:59 UTC-04:00 2013","MarketCap":438558756810,"Volume":642152,"ChangeYTD":532.1729,"ChangePercentYTD":-9.29075869891158,"High":484.635,"Low":480.72,"Open":483.64}}
任何想法如何解决这个错误?
有关代码,请参阅我的 JSfiddle http://jsfiddle.net/tgilbert/fXgLt/。
任何帮助将不胜感激。