lant101 laya.ui.Image.prototype.hello= function () { alert(3); };如果用 ts 去调用 hello 方法的时候,会显示红色。实际运行肯定是没问题。如果是自己的类,用 d.ts 肯定没问题。