我的代码看起来像下面..不知道是什么问题..JSONP /阿贾克斯返回 - 语法错误:无效的标签
<script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript">
jQuery.getJSON("http://dev9.edisbest.com/json.php?symbol=IBM&callback=?",
function(data) {
alert("Symbol: " + data.symbol + ", Price: " + data.price);
});
</script>
我JSON.PHP页面代码如下
<?
header("Content-Type: application/json");
print json_encode(array("symbol" => "IBM", "price" => 91.42));
?>
检查这个[问题](http://stackoverflow.com/questions/2822609/invalid-label-firebug-error-with-jquery-getjson)希望这会帮助你。 – Hemantwagh07