如题,网上找了很多代码看,看的好乱,自己尝试了下也没搞定。要求非常简单,只是想php从js中读取一个形参而已,也不需要js再接收什么php的返回值,部分代码如下,求哪位大神帮忙写个,3q
$device = $_POST['phone'];
function count_num()
{
echo $device;
}
?>
<script> <br /> function ShowNumber(device) <br /> { <br /> $.post("check.php", { phone:device } ); <br /> } <br /> </script>
check.php
<?phpecho $_POST['phone'];
$device = $_POST['phone'];
JQ类引了没了?