日期:2014-05-16 浏览次数:20706 次
<html> <head> <script language="javascript" type="text/javascript" src="js/jquery-1.7.1.min.js"> </script> <script language="javascript" type="text/javascript" > function getjs(){ url="http://api.t.sina.com.cn/provinces.json", $.getJSON(url+"?jsoncallback=?", function(data) { document.write(data); }); } </script> </head> <body> <input type="button" value="test" onClick="javascript:getjs();"/> </body> </html>
Resource interpreted as Other but transferred with MIME type undefined Uncaught SyntaxError: Unexpected token