Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

vue3 项目如何请求本地文件

问题:我用 Vite 创建 Vue3 项目,这个时候想实现 通过 node 将本地的文本文件的内容读取出来,给前端显示,不知道能使用什么实现这个数据输送 ?
请具体的方法或者什么使用包


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

本地可以用nodejs,例如koa起一个服务,提供接口给自己用


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...