Loading... 1. xml中部分控件需要使用全包名,否则`findComponentById`会查不到 例如: ```xml <ohos.agp.components.webengine.WebView ohos:id="$+id:webView" ohos:height="match_parent" ohos:width="match_parent"/> ``` 如果直接使用 ```xml <WebView ohos:id="$+id:webView" ohos:height="match_parent" ohos:width="match_parent"/> ``` 会查询不到改控件。 未完待续... 最后修改:2022 年 05 月 17 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏