标签:write 加载 需要 nbsp 内容 script 根据 console 指定
<!-- 输出"5.txt" --> <script src="5.txt"> /** * 甚至连文本文件也能加载执行 * */ console.log("hello"); </script>
文件 "6.php" 内容:console.log("6.php");
<!-- 输出 "6.php" --> <script src="6.php"> console.log("hello"); </script>
这里不需要关心php文件的语法是否正确,因为请求的是文件的内容而不是文件的执行结果。所以服务器端不需要解析php。
标签:write 加载 需要 nbsp 内容 script 根据 console 指定
原文地址:https://www.cnblogs.com/bibiafa/p/9360398.html