用php获取js变量的值

用php获取js变量的值

<script type="text/javascript">
var t1 = "fff";
var t2 = "<?php echo "\"+t1+\"";?>";
alert(t2);
</script>

 

posted @ 2013-10-16 18:12  洒洒  阅读(7994)  评论(0编辑  收藏  举报