如下:
<html>
<script type="text/javascript" src="js/jquery-min.js"></script>
<input type="button" value="submit" id="submit" />
<?php
$_stable='wo';
$year='2012';
echo <<<DRR
<script type="text/javascript">
var w=screen.width;
$("#submit").click(function(){
$.post("modules/auto.php",{action:"ac",stable:$_stable,year:$year},function(data){
});
});
//alert(w);
</script>
DRR;
?>
</html>
总是提示wo未定义,但是将$_table改成数字就没问题,什么原因,怎么解决?新手,谢谢
<html>
<script type="text/javascript" src="js/jquery-min.js"></script>
<input type="button" value="submit" id="submit" />
<?php
$_stable='wo';
$year='2012';
echo <<<DRR
<script type="text/javascript">
var w=screen.width;
$("#submit").click(function(){
$.post("modules/auto.php",{action:"ac",stable:$_stable,year:$year},function(data){
});
});
//alert(w);
</script>
DRR;
?>
</html>
总是提示wo未定义,但是将$_table改成数字就没问题,什么原因,怎么解决?新手,谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货