<?PHP $jsondata = "{symbol:'IBM',price:120}"; echo $_GET['callback'].'('.$jsondata.')'; ?>
<script type="text/javascript" src="front/Scripts/jquery-1.4.4.min.js"></script> <script> $.getJSON("http://xxxxx.com/testing/jsonp.PHP?callback=?",function(data) { alert(data.price); }); </script>原文链接:https://www.f2er.com/json/290754.html