feat(WechatSmallProject): 新增 微信小程序 课程(包含实验1-4)

This commit is contained in:
2026-05-05 14:38:52 +08:00
parent 69db4c1c07
commit f1679c1767
177 changed files with 1977 additions and 10 deletions

View File

@@ -0,0 +1,2 @@
node_modules
pnpm-lock.yaml

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,9 @@
var express = require('express');
var app = express();
app.use(express.static('./htdocs'));
app.listen(3000, res => {
console.log('服务器启动成功访问地址http://127.0.0.1:3000/文件名');
});

View File

@@ -0,0 +1,16 @@
{
"name": "music",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.18.1",
"multiparty": "^4.2.1",
"serve-index": "^1.9.1"
}
}

View File

@@ -0,0 +1,17 @@
1. 准备工作
安装Node.js
启动命令行,切换工作目录到当前目录。
2. 执行如下命令,启动服务器
node index.js
3. 将音频或视频文件放入htdocs目录
4. 获取文件链接
http://127.0.0.1:3000/文件名
如:
http://127.0.0.1:3000/1.mp4
http://127.0.0.1:3000/2.mp4