问题描述
有没有办法在javafx 2.2 WebView上启用HTML5本地存储?无论我做什么,似乎本地存储被禁用/不可用于javafx提供的WebView。
我甚至使用对其进行了测试,确实显示本地存储未启用。
可以有一个启用它的js脚本吗?
考虑到我不控制加载到WebView中的网页,是否有替代方案。
谢谢
Is there a way to enable HTML5 local storage on a javafx 2.2 WebView? Whatever I do it seems that local storage is disabled/not available for the WebView supplied by javafx.I even tested it using http://html5test.com which did indeed show that local storage isn't enabled.could there be a js script that would enable it?Are there alternatives, given that I don't control the web pages that are being loaded into the WebView.Thanks
推荐答案
HTMLF本地存储功能未针对JavaFX 2.2 WebView实现,因此无法启用该功能使用该JavaFX版本。
HTML5 local storage functionality is not implemented for JavaFX 2.2 WebView so there is no way to enable that feature with that JavaFX version.
HTML5本地存储目前正在WebView for Java 8中实现,您可以获得以测试实现的功能。
HTML5 local storage is currently being implemented in WebView for Java 8, you can get a preview version to test out functionality as it is implemented.
与此相关的功能跟踪问题是:
The feature tracking issues related to this are:
- WebView to support HTML-5 localStorage?
- Implement window.localStorage
JavaFX问题跟踪器需要登录才能访问,但任何人都可以注册从登录页面。
The JavaFX issue tracker requires a login to access, but anybody can sign up from the login page.
这篇关于如何在javafx WebView中启用HTML5本地存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!