实质上:
<?php//somewhere set a value$var = "a value";?><script>// then echo it into the js/html stream// and assign to a js variablespge = '<?php echo $var ;?>';// thenalert(spge);</script>

实质上:
<?php//somewhere set a value$var = "a value";?><script>// then echo it into the js/html stream// and assign to a js variablespge = '<?php echo $var ;?>';// thenalert(spge);</script>