$.gDialog.prompt要提交数据,有方法可以跳转URL吗
1 2 3 4 5 6 7 8 9 10 11 12 | function showOrderPayAlert() { $.gDialog.confirm( "xxxxx" , { title: "支付确认" , cancel: "取消" , confirm: "已完成支付" , onSubmit: function payAlertConfirm() { var t = setTimeout( "turnToPayResult()" , 1000); }, animateIn: "bounceIn" , animateOut: "bounceOut" }); } |
1 2 3 4 5 6 7 8 9 10 | m._OPTIONS = { title: false , cancel: false , confirm: false , animateIn : false , animateOut : false , onSubmit : false , onCancel : false , required: false , }; |
1 | m.tplBase += "<div class=\"gdialog-button-group\">{{BUTTON_CANCEL}} <button class=\"button button-ok\">{{ok}}</button></div>" ; |
1 2 3 4 5 6 7 8 9 10 | 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值,貌似点取消和确认没返回值怎么判断。。。。。