$params = json_decode(stripSlashes($_POST['p']), true); 在post过来的json数据如果要json_decode必须对post过来的数据stripSlashes下