从今天起,我在dart2js上遇到了一个问题,dart2js没有任何错误,但是当我在浏览器(Chrome)上启动我的webapp时,控制台会发送这个错误"Uncaught type 'Mi‘不是类型'IF’的一个子类型。“
但是在Dartium上运行时,没有bug。我不太喜欢JavaScript,所以我不知道如何进一步研究。
我的应用程序部署在那里:
5.231.68.247/comprachicos/index.html And the page with the bug is : 5.231.68.247/comprachicos/jeu.html 我的消息来源在吉特布上:https://github.com/eagleofdeath13/Comprachicos/tree/master/web
预先感谢:D
发布于 2013-11-01 22:30:12
当我在Dartium中运行它时,它也会导致异常。
在你的jeu.html里
<input id="nextPageButton" type="button"/>在你的main.dart中,你有:
ButtonElement b = querySelector("#nextPageButton");因此,Dart中的错误信息是:
Exception: type 'InputElement' is not a subtype of type 'ButtonElement' of 'b'.要么在html中使用button-tag,要么在main.dart中使用InputElement来解决这个问题。
https://stackoverflow.com/questions/19690268
复制相似问题