日期:2014-05-16  浏览次数:20337 次

js 创建 dialog,button 示例代码
pane=document.createElement("div");

pane.setAttribute("id","diaDiv");
          
document.body.appendChild(pane);

var dia=new dijit.Dialog({title:"dojo dialog"},pane);

dia.show();   

new dijit.form.Button({ "class": "large", label:"wokao",onClick:foo }, dojo.byId("id1"));