0

我正在尝试使用以下代码创建一个 simpleDialog2:

function deleteItem(itemID) {

  $('<div>').simpledialog2({
    mode: 'button',
    headerText: 'Are you sure?',
    headerClose: true,
  //  buttonPrompt: 'Please Choose One',
    buttons : {
      'Delete': {
        click: function () { 
          //$('#buttonoutput').text('OK');
        }
      },
       icon: "delete",
      'Cancel': {
        click: function () { 
         // $('#buttonoutput').text('Cancel');
        },
        theme: "c"
      }
    }
  })
}

而且我每次都会收到此错误TypeError: 'undefined' is not a function (evaluating '$('<div>').simpledialog2')并且您可以提供的帮助将不胜感激。

4

1 回答 1

0

我的问题实际上是我没有以正确的顺序导入 simpleDialog2 语句,如本页所述。

于 2012-07-29T21:38:08.023 回答