标签: javascript php html
我想从html文件中将参数传递给php(.js),如下所示:
的index.html?d =你好
<script src="jscript.php?data=$_GET('d')" type="text/javascript" />
和php(.js)代码
<?php header('Content-Type: application/javascript'); echo "document.write ('" . $_GET["data"] . "');"; ?>