function f1(){
/*$.get('./11.php','&name=2222&age=888',function(msg){
alert(msg);
})*/字符串请求
alert(msg);
})*/
$.get('./11.php',function(msg,status){
//alert(msg);
alert(msg.city);
alert(status);
},'json')//返回json 对象
}
<input type="button" value="触发" οnclick="f1()" />
//11.php 页面
<?php
$arr=array('city'=>'山东','mian'=>'960');
echo json_encode($arr);
?>