diff --git a/arkui/ace_ets_web_dev_four/entry/src/main/ets/MainAbility/pages/web.ets b/arkui/ace_ets_web_dev_four/entry/src/main/ets/MainAbility/pages/web.ets index a4001b37c701f42b8f8c7296e77691cb161a0618..11d6cd8c076898adbb980067442866e24007e233 100644 --- a/arkui/ace_ets_web_dev_four/entry/src/main/ets/MainAbility/pages/web.ets +++ b/arkui/ace_ets_web_dev_four/entry/src/main/ets/MainAbility/pages/web.ets @@ -69,9 +69,12 @@ struct Index { }) } Web({src:"www.example.com",controller:this.controller}) - .onUrlLoadIntercept((event) => { - console.log('onUrlLoadIntercept ' + event.data.toString()) - Utils.emitEvent(event.data.toString(),2) + .onLoadIntercept((event) => { + console.log('url:' + event.data.getRequestUrl()) + Utils.emitEvent(event.data.getRequestUrl(),2) + console.log('isMainFrame:' + event.data.isMainFrame()) + console.log('isRedirect:' + event.data.isRedirect()) + console.log('isRequestGesture:' + event.data.isRequestGesture()) return false })