您可以使用Firebug控制台查看ajax请求数据吗?
您无法从$ _POST获得姓氏,名字。它在json字符串中。首先,您必须使用
$data = $_POST['data'] or $_REQUEST['data']
Then, depre the $data using json_deocde and access your attributes.
json_depre($data);

您可以使用Firebug控制台查看ajax请求数据吗?
您无法从$ _POST获得姓氏,名字。它在json字符串中。首先,您必须使用
$data = $_POST['data'] or $_REQUEST['data']
Then, depre the $data using json_deocde and access your attributes.
json_depre($data);