php+ajax+json 详解及实例代码

PHP+ajax+json 实例代码

html页面

rush:xhtml;">
显示结果
姓名:

年龄:

工作:

PHP页面

rush:PHP;"> $username,"age"=>$age,"job"=>$job); $json_obj = json_encode($json_arr); echo $json_obj; ?>

使用post方式

rush:js;">