!!window.android
时间: 2023-10-07 18:11:42 浏览: 152
在提供的引用内容中,中提到了缺少Android Window API,而[2]中提到了检查是否为Android设备的代码片段。而和中提到了与window和findViewById相关的问题。
根据这些引用内容,我们可以得出结论,`!!window.android`是一个判断是否存在`window.android`对象的表达式。根据中的代码,`window.android`可能是一个Webview中的JavaScript接口对象,可以通过`window.webkit.messageHandlers`中的`webClose`属性进行调用。<span class="em">1</span><span class="em">2</span><span class="em">3</span><span class="em">4</span>
#### 引用[.reference_title]
- *1* [缺少的Android Window API!-Android开发](https://download.csdn.net/download/weixin_42107374/19085642)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* *3* [h5调用原生App的方法合集 window.webkit.messageHandlers](https://blog.csdn.net/weixin_35225039/article/details/117616691)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *4* ['android.view.Window$Callback android.view.Window.getCallback()' on a null object reference](https://blog.csdn.net/weixin_40119478/article/details/82019968)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文