调用webview容器里面的onInactive接口去通知Web组件进入未激活状态。开发者可以在此回调中实现应用失去焦点时应表现的恰当行为,参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-webview-V5\#oninactive将web组件url置空保证第一次没问题
调用webview容器里面的onInactive接口去通知Web组件进入未激活状态。开发者可以在此回调中实现应用失去焦点时应表现的恰当行为,参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-webview-V5\#oninactive
将web组件url置空保证第一次没问题