Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Flutter 的应用程序中使用 webview_flutter。我需要知道在该 web 视图中打开的页面的语言,也许是阅读“lang=en-us”标签。我怎样才能做到这一点?
是的,您可以读取lang属性。您可以通过获取 html 内容本身来做到这一点。这个答案可能会有所帮助 -回答
lang