日期:2014-05-17 浏览次数:20415 次
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"></script> <script> $.ajax({ type: 'POST', url: "http://localhost/bubblewitch/index.php/rpc/ClientApi", data: JSON.stringify("[{2:2},{1:1}]"), success: function(){}, dataType: "text", contentType: "application/json-rpc", timeout:60000, error: function(){} }); </script>
$s = fopen("php://input", 'rb'); echo fread($s, 10000);
------解决方案--------------------
当然有:
$s = file_get_contents('php://input');
$s 就是传入的参数
------解决方案--------------------
因为传输协议不合适