这是我使用过的脚本,现在我必须在消息出现并单击该消息的“确定”按钮后进行重定向
$('#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 ),
会是这样。
alert(retdata.msg); window.location.href =“ http://stackoverflow.com ”;
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句