dojo에서 확인 대화 상자를 작성하는 방법은 무엇입니까? do ok 대화 상자 (javascript 확인 대화 상자 없음)로 단추 누르기에 나타나는 ok 취소 대화 상자를 갖고 싶습니다. 지금까지 나는 클릭 이벤트에 대해서만 대화 상자를 표시 할 수 있습니다. Heres는 내 코드 :이 확인 대화 상자를 취소 할 수있는 방법dojo에서 대화 상자 확인
<script type="text/javascript">
dojo.require("dijit.form.Button");
dojo.require("dijit.Dialog");
var secondDlg;
dojo.ready(function(){
// create the dialog:
secondDlg = new dijit.Dialog({
title: "Programmatic Dialog Creation",
style: "width: 300px",
draggable:false
});
});
showDialogTwo = function(){
// set the content of the dialog:
secondDlg.set("content", "Hey, I wasn't there before, I was added at " + new Date() + "!");
secondDlg.show();
}
</script>
</head>
<body class="claro" style="margin-right:10px;">
<button id="buttonTwo" data-dojo-type="dijit.form.Button" data-dojo-props="onClick:showDialogTwo" type="button">Show me!</button>
</body>
?