我想将数据从flutter传递到webview
我的数据是这样定义的,
var data = {
"id": "hweqetwyqte"
};
我在 webview 中传递如下数据,
webViewController.evaluateJavascript('''
t._selectItem($data); // this is not working --> I want this to work
t._selectItem({"id": "hweqetwyqte"}); // this is working
''');
任何帮助将不胜感激!
答案 0 :(得分:-1)
试试
t._selectItem({"id": "${data['id']}}"})