1.使用EditBox如果把placeholder属性设置为空,就会在浏览器控制台输出一对警告。如下:
[GroupMarkerNotSet(crbug.com/242999)!:94BFB408]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
(index):1 WebGL: too many errors, no more errors will be reported to the console for this context.
如果placeholder设置一个字符串就没事。还有EditBox在"模拟器"上跟"浏览器“上效果不一样,浏览器效果正常,但是在模拟器预览时候只能看到前5个字符,后面都都被截断了。无论设置MaxLength为多少都一样。
还有就是EditBox为什么必须点2次才能输入??
2.this.bodySprite.node.opacity=0;在浏览器正常,在模拟器无效!!