我在php.17中有这个
echo "<script type ='text/javascript'>
function delayer(){
window.location = 'peoplelist.html'
}
</script>";
但是,计算机向我回复“解析错误:语法错误,意外的'类型'(T_STRING)第17行,这是什么问题?
尝试添加一个; 到JS函数中的文本结尾
<?php
echo "function delayer(){ window.location = 'peoplelist.html'; }";
?>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句