用php獲取js變量的值

<script type="text/javascript"> var t1 = "fff"; var t2 = "<?php echo "\"+t1+\"";?>"; alert(t2); </script> 轉載於:https://www.cnblogs.com/Jackie-zhang/p/10121846.htmljavascript
相關文章
相關標籤/搜索