<?php
echo $_SESSION['count'];
?>
...
<script type="text/javascript">
function a(){
alert(<?php echo $_SESSION['count'] ?>);
<?php $_SESSION['count'] = $_SESSION['count']+1 ?>;
}
</script>
...
<div>
<button name="a" onclick="a()" type="button">a1</button>
</div>
这段代码工作,会话变量的变化&#39;计数&#39;无法保存,每当我打电话给警报时,它就会起泡#1;&#34 ;; 我该如何解决?