這是劇本我已經使用後如何重定向頁面,現在我有出現消息後,點擊該消息OK按鈕CI中使用JAVA SCRIPT點擊警報消息OK按鈕
$('#save_scheduler').click(function() {
$.ajax({
url: "<?php echo site_uri('shopapp/scheduler_master'); ?>",
type: "post",
dataType: "json",
data: $('#SchedulerForm').serialize(),
success: function(retdata) {
alert(retdata.msg),
使用'window.location.href =「http://google.com」;' –
可能重複[如何重定向到jQuery中的另一個頁面?](http://stackoverflow.com/questions/503093/如何重定向到另一個頁面在jquery) –