提交 d1cd6313 编写于 作者: Y ywx1211260

revise api

Signed-off-by: Nywx1211260 <yupeng78@huawei.com>
上级 e4b18097
......@@ -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
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册