apihandler.ashx?callback=eqfeed_callback:1Uncaught SyntaxError: Unexpected token :


原因在於jsonp傳的數據格式不一樣.
解決方法,后端處理json字符串如下:
jsonp(
.... my json ...
)
如 .net
string jsonp = context.Request["jsonpcallback"];
string str = "[{\"id\":\"1\",\"name\":\"張三\"},{\"id\":\"2\",\"name\":\"李四\"}]";
string strReturn = jsonp + "(" + str + ")";
借鑒自:
http://stackoverflow.com/questions/7936610/json-uncaught-syntaxerror-unexpected-token
