这个返回值写对了吗,代码如下:
<script type='text/javascript'>
//<![CDATA[
$(window).load(function(){
$(window).on('beforeunload', function(){
return
<?php
// Log out when browser is closed
echo " location.href=\"/logout.php?task=EndLive&webcam_id=".$_GET['webcam_id']."\"";
?>
;
});
});//]]>
</script>
退货是否正确写入是否有正确的写入方法?