我似乎有一个奇怪的问题,我想知道是否有其他人遇到过这个问题或者可以看到我哪里出错了。
我有一个 jquery ui 对话框模式,当我初始化它时,我将 disabled 标志设置为 true,因为我不希望它显示,直到它被用户调用。这是我使用的代码:
function wkgp_config_modal(aWorkgroup, isDisabled){
$("#wkgp_config_modal").dialog({disabled: isDisabled,
height: 100,
modal: true,
title: aWorkgroup+" config setup",
resizable:false,
overlay:{opacity:0,
background:"white"}
});
}
这个函数是从我的 init.js 文件中调用的
$(document).ready(function() {
wkgp_config_modal("test", false);
//other code here not related to issue
}
该函数被调用并且所有其他设置(如可调整大小)都是正确的,我只是不确定我做错了什么,任何建议都会非常高兴。