【发布时间】:2016-10-17 20:25:08
【问题描述】:
您好,我正在尝试在 typescript xml 页面中获取 Image 元素并以编程方式设置它的 imageSource 属性。
在我发现的示例中是这样完成的:
image = page.getViewById("id");
image.imageSource = newImageSource;
我在使用 typescript 时遇到的问题是
error 'imageSource' does not exist on type 'View'
我不知道如何解决这个问题。有什么想法吗?
【问题讨论】:
标签: typescript nativescript imagesource