摘要: getScript 与 getJSON的用法1、由于存在跨域的问题,不能使用ajax/post/get方法,于是找到了getScript 用法: jQuery.getScript("http://xxxx/xx.php?param1=value1&param2=value2", function(){ alert(data.name); }); } xx.php: $arr=array("name"=>"xiaohong", "age"=>20); print 'var data = & 阅读全文
posted @ 2014-02-08 10:31 名字好难起 阅读(156) 评论(0) 推荐(0) 编辑