摘要:
接上节继续,今天研究tauri中,前端如何调用Rust代码。 一、无返回值&无传参 main.rs中加1个hello方法: 然后在main方法中,参考下图暴露hello1: Rust代码准备好之后,前端(假设是react框架)就能调用了: import { invoke } from "@tauri 阅读全文

posted @ 2022-08-20 16:59
菩提树下的杨过
阅读(2829)
评论(0)
推荐(1)