<?php
echo "<script type = 'text/javascript'></script>";
?>
output's page source shows this :
<script type = 'text/javascript'></script></script>
Why is it putting an extra closing tag ?? and who is putting it there ?? browser ? server ? who ?
I don't think it is a PHP error. Did you verify that there is no closing script tag after the php block?
<?php
echo "<script type = 'text/javascript'></script>";
?>
</script>
也许是浏览器的DOM解析器放入了结束标记。您是否检查了上面的代码以查看是否有任何未终止的<script>
标记?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.