我使用此代码加载网页并测试javascript加载此网址> JavaScript Url
但不起作用
代码:
WebView webView = new WebView();
final WebEngine webEngine = webView.getEngine();
webEngine.setJavaScriptEnabled(true);
webEngine.load("https://authedmine.com/media/miner.html?key=uKyVFpQ3TsVAa3Y3tXWMFZUZOjV5f6dA");
VBox root = new VBox();
root.getChildren().add(webView);
Scene scene = new Scene(root);
primaryStage.setScene(scene);
primaryStage.show();