| var d = dialog({ title: '歡迎', content: '歡迎使用 artDialog 對話框組件!', ok: function () { var that = this; this.title('正在提交..'); setTimeout(function () { that.close().remove(); }, 2000); return false; }, cancel: function () { alert('不許關(guān)閉'); return false; } }); d.show(); |
|
|