<?php $json_width = $_POST["img_width"]; $json_height = $_POST["img_height"]; //生成对应宽高图片后传img_src $result = array('img_src'=>'images/test_kill.jpg','status'=>'ok'); echo json_encode($result); ?>