首页 > 解决方案 > 如何以 webview xamarin 形式将 C# 传递给 javascript?

问题描述

我在 C# 方法中有两个列表:

public List<myClass> resulOne;

public List<myClass> resultTwo;

我在用

webview.Source = "file:///android_asset/myFolder/index.html" ; to Set javaScript.

我可以在 javascript 中发送resultTworesultOne发送和使用它们吗?或发送 json 文件到??webviewindex.htmlindex.html

标签: javascriptc#xamarinxamarin.formsxamarin.android

解决方案


推荐阅读