【发布时间】:2015-06-24 01:45:36
【问题描述】:
我正在使用即兴提示,我想在特定条件下动态添加按钮。
state0: {
html: 'Do you want to apply changes?',
buttons: { YES: 1, NO: 0 },
focus: 1,
submit: function(e, v, m, f) {
if (v == 1) {
e.preventDefault();
$.prompt.goToState('state1');
return false;
}
$.prompt.close();
}
},
在这种状态下,我需要 3 个按钮来满足特定条件:"NEWCONFIG", "YES", "NO";对于另一种情况,我需要 2 个按钮:"YES", "NO"
【问题讨论】:
-
那么你的问题是什么?
-
我想在特定条件下显示“NEWCONFIG”按钮。它不应该在 promt 上一直显示
标签: jquery impromptu impromptu-interface