function showMsg(message,title) { if( title == null ) title = ""; var d = new dijit.Dialog({ id : "myDialog",closable : false,title : title,content : "<div align='center'>"+ message +"<br><button data-dojo-type='dijit/form/Button' type='button' onclick='dijit.byId(\"myDialog\").destroy()'>确定</button></div>",}).show(); }
使用方法:
原文链接:https://www.f2er.com/dojo/291225.html