4

open我想在事件中更改 JQuery UI 对话框的标题。

我尝试了以下方法:

open: function (event, ui) {
    this.title = "new name";
}

但它没有用,标题保持不变。

4

1 回答 1

5

您可以使用此处option描述的方法:

open: function (event, ui) {
    $(this).dialog("option","title","new name");
}

应该管用

于 2011-08-03T09:20:08.083 回答