我已经完成了所有的答案,但没有得到我的问题的确切解决方案,所以发布了这个问题。
我试图在我的控制器中的特定条件下显示一个确认框,如下所示:
if($old_riochannel_upto > $param_valid_from){
echo "<script>if(!confirm(\'Kindly note that a promotional offer is valid between the period DD/MM?/YYYY to DD/MM/YYYY. During this period the prices mentioned in the promotional offer will override the prices mentioned in this RIO\')){ window.location.href = 'index'; } </script>";
}但是即使条件匹配,这个 pop 也不会显示。如果放在exit结束if标签之后显示。
我做错了什么?
胡子哥哥
qq_笑_17
随时随地看视频慕课网APP
相关分类