0
다음과 같은 코드가 있습니다 :jquery 대화 상자가 열거 나 닫히지 않습니다
이 대화 상자는 내가 사용할 때 열리지 않습니다.
else if (json.score == -3) {
$("#dialog-unauthenticated").dialog('open');
}
내가 이것을 사용할 때! 나는 autopen false로 초기화했다.
else if (json.score == -3) {
$("#dialog-unauthenticated").dialog({
resizable: false,
height: 140,
modal: true,
buttons: {
"OK": function() {
$(this).dialog("close");
}
}
});
}
무엇이 잘못 되었나요? 닫기가 작동하지 않습니다.
함께 초기화 :$("#dialog-unauthenticated").dialog({
autoOpen: false,
resizable: false,
height: 140,
modal: true,
buttons: {
"OK": function() {
$(this).dialog("close");
}
}
});
이 도움이된다면 모르겠지만, 메신저가 JQuery와 게시물에 대한 응답이를 호출하지 않습니다.
@raklos, firebug에서 오류가 발생하고 있습니까? – kobe
아니요. 코드 줄에 표시되고 계속 진행되지만 대화 상자가 표시되지 않습니다. – raklos
이전 코드를 알려주십시오. 초기화되지 않았으므로 문제가있을 수 있습니다. – lnrbob