标签:rip ges new set tle script code todo div
一、事件调用
1.Xamarin调用webview事件:
WebView展示的代码如下:
var htmlSource = new HtmlWebViewSource(); htmlSource.Html = @"<html> <head> <meta charset=‘UTF-8‘> <title></title> <script> function showMsg(msg){ alert(‘hello ‘+msg); } </script> </head> <body> 你好世界. </body> </html>"; this.webview.Source = htmlSource;
调用核心代码:
this.wv.Eval("showMsg(‘王磊‘)");
效果如下:
2.webview调用Xamarin事件:
//todo
标签:rip ges new set tle script code todo div
原文地址:http://www.cnblogs.com/vipstone/p/6957535.html