我已經完成了所有的答案,但沒有得到我的問題的確切解決方案,所以發布了這個問題。我試圖在我的控制器中的特定條件下顯示一個確認框,如下所示: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標簽之后顯示。我做錯了什么?
確認框未出現在從控制器 (CodeIgniter) 調用的 PHP 中
胡子哥哥
2022-12-02 16:11:21