javascript - 如何以 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 中发送resultTwo
、resultOne
发送和使用它们吗?或发送 json 文件到??webview
index.html
index.html
解决方案
推荐阅读
- json - 接收 JSON 对象,是否需要“包装”方括号?
- php - Codeingiter 以更快的方式获取计数
- python - 是否有 Ansible 的客户端/代理软件?
- apache-spark - 如何在不分叉/修改 Spark 本身的情况下创建自定义 Spark-Native 函数
- c# - 代码中的字符串与文件中的字符串有什么区别
- reactjs - 我在 reactjs 中创建表单时遇到问题
- google-apps-script - 在 Google 表格插件中进行 DNS 查找时获取“名称服务器拒绝查询(蹩脚委托?)”
- ios - 在 SwiftUI 中有条件地更改 NavigationLink 目标
- c# - 如何在c#中同时执行一个方法?
- node.js - 设置限制电子邮件发送计数