$.gDialog.prompt要提交数据,有方法可以跳转URL吗
function showOrderPayAlert() { $.gDialog.confirm("xxxxx", { title: "支付确认", cancel: "取消", confirm: "已完成支付", onSubmit: function payAlertConfirm() { var t = setTimeout("turnToPayResult()", 1000); }, animateIn: "bounceIn", animateOut: "bounceOut" }); }
m._OPTIONS = { title: false, cancel:false, confirm:false, animateIn : false, animateOut : false, onSubmit : false, onCancel : false, required: false, };
m.tplBase += "<div class=\"gdialog-button-group\">{{BUTTON_CANCEL}} <button class=\"button button-ok\">{{ok}}</button></div>";
if (options.cancel) { t = t.replace("{{cancel}}",options.cancel); }else { t = t.replace("{{cancel}}","取消"); } if (options.confirm) { t = t.replace("{{ok}}",options.confirm); }else { t = t.replace("{{ok}}","好的"); }回复
confirm 如何返回boolean值,貌似点取消和确认没返回值怎么判断。。。。。