我正在尝试使用 https://github.com/HubSpot/vex模式脚本进行确认对话.此时,如果出现确认对话框,则“ok”按钮被选为默认值.有谁知道我怎么能改变这个?我希望取消按钮是默认的,这样任何人
感谢您的回答.
最好的祝福
托马斯
vex.dialog.open({
message: 'Are you absolutely sure you want to destroy the alien planet?',
overlayClosesOnClick: false, // set false to click out
callback: function (value) {
console.log(value);
},
buttons: [
$.extend({}, vex.dialog.buttons.YES, { text: 'Your Button For Yesy' }),
$.extend({}, vex.dialog.buttons.NO, { text: 'Your Button For No' })
]
});
