echo "<script language="javascript">location.href="xxxxxxx"</script>";
第1个回答 2015-08-15
echo "<script language='javascript'>location.href='xxxxxxx'</script>";
里面的双引号要改为单引号。本回答被提问者采纳
里面的双引号要改为单引号。本回答被提问者采纳
第2个回答 2015-08-15
双引号放在双引号里时需要转义,或者用单引号
echo "<script language=\"javascript\">location.href=\"xxxxxxx\"</script>";
echo "<script language='javascript'>location.href='xxxxxxx'</script>";
echo "<script language=\"javascript\">location.href=\"xxxxxxx\"</script>";
echo "<script language='javascript'>location.href='xxxxxxx'</script>";