Home
Sign Up
Sign In
Advertisement
V2EX
›
Flutter
flutter 支持在打开的网页里注入自己写的 js 吗
1
WEBUG
·
Mar 12, 2021
· 1857 views
This topic created in 1913 days ago, the information mentioned may be changed or developed.
网上查到的方法都是说可以调用 html 里面的方法,但是调用的都是 html 已经有的方法,能写个 js 方法插入到打开的网页,然后执行吗
HTML
调用
方法
flutter
2 replies
•
2021-03-12 18:42:51 +08:00
1
xiaoyiyu
Mar 12, 2021 via iPhone
1
可以,webViewController.evaluateJavascript("var a=10;")
2
WEBUG
OP
Mar 12, 2021
@
xiaoyiyu
#1 3q
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2745 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 11:35
·
PVG 19:35
·
LAX 04:35
·
JFK 07:35
♥ Do have faith in what you're doing.
❯