$ npm install $ ng generate component my-component html <h1>Welcome to My Angular Component!</h1> import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.web.WebView; import javafx.stage.Stage; public class MyApp extends Application { @Override public void start(Stage primaryStage) { WebView webView = new WebView(); webView.getEngine().load("file:///path/to/angular-component/dist/index.html"); primaryStage.setScene(new Scene(webView, 800, 600)); primaryStage.show(); } public static void main(String[] args) { launch(args); } }


上一篇:
下一篇:
切换中文