…
MessageBox(String text,String header,String CSS){ _Box = new divelement(); ... _Box.onClick.Listen(_clickHandler); if (header != null) HTML.write("<div class='dHTMLx_popup_Title'>$header</div>"); HTML.write("<div class='dHTMLx_popup_text'><span>$text</span></div>"); HTML.write("<div class='dHTMLx_popup_controls'>"); }String addbutton(String text,String result){ if (HTML != null){ HTML.write("<div class='dHTMLx_popup_button' result='$result' ><div>$text</div></div>"); } else throw new Exception(".addbutton must be used before .show"); } _clickHandler(Event event){ String result = event.target.attributes["result"]; if (result == null) result = event.target.parent.attributes["result"]; hIDe(result); //<=== ERROR result alway return null }
和
Future<String> show(){ if (HTML != null){ //finalize HTML initialization HTML.write("</div>"); _Box.INNERHTML = HTML.toString(); //<===== ERROR after line : Removing disallowed attribute <div result="ok"> HTML = null; }...}
…
如何将此代码更改为SDK 0.7.1.
非常感谢你.
_Box.INNERHTML = HTML.toString();
==>
_Box.setINNERHTML(HTML.toString(),treeSanitizer : new NullTreeSanitizer());
它的工作原理.
总结以上是内存溢出为你收集整理的如何将Element innerHtml更改为Dart SDK 0.7.1全部内容,希望文章能够帮你解决如何将Element innerHtml更改为Dart SDK 0.7.1所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)