0

我正在使用 simpledialog2 在移动设备中显示对话框。

defaultDialogConfig: {
    mode: 'blank',
    dialogForce: false,
    showModal: true,
    headerText: '',
    headerClose: true,
    animate: false,
    zindex: 9999,
    blankContent: '',
    themeDialog: 'b',
    themeInput: 'e',
    themeButtonDefault: false,
    themeHeader: 'a',
    callbackOpen: lockScreen,
    callbackClose: unlockScreen
},

调用这个 simpledialog2

var config = defaultDialogConfig;
                $.extend(config, {blankContent: response.address});
                var dialog = $(document.createElement('div'));
                dialog.simpledialog2(config);

在我的响应中,我们有一个按钮,我想向按钮添加一个事件。如何添加一个事件?

4

1 回答 1

0

我能够解决live

$('#button').live("click",function () {
    alert("hi");
})

我将这段代码放在对话框显示下方。

于 2013-12-20T09:14:22.307 回答