我有一个非常奇怪的问题!我在我的一个页面中使用了blockUI JQuery插件,它工作正常。我为另一个页面做了同样的事情,当$ unblockUI被调用时,它并没有解锁页面。JQuery BlockUI不解除页面
下面是代码:
function showCommentBox()
{
$("#commentBox").addClass("modalPopup");
alert($("#commentBox").hasClass("modalPopup"));
$.blockUI({ message: $("#commentBox") });
}
function cancelComment()
{
alert($("#commentBox").hasClass("modalPopup"));
$.unblockUI();
}
当$( “#commentBox”)hasClass( “modalPopup”)中,而该cancelComment功能评估不工作返回 “假” 的页面。工作正常的页面返回true。
请阅读我编辑的答案,并让我知道它是否可以帮助你 – 2009-06-04 23:06:56