通过AJAX传到PHP的json字符串有时候加上反斜杠”\”来转义,PHP处理时需要先去掉反斜杠,然后再json_decode $str = stripslashes($_POST['json']); $arr = json_decode($str,true);