Skip to content

Commit 9956d37

Browse files
committed
Archive: Half
Signed-off-by: LetMeFly666 <814114971@qq.com>
1 parent 7914ef1 commit 9956d37

File tree

5 files changed

+33
-19
lines changed

5 files changed

+33
-19
lines changed

.nodeploy

Whitespace-only changes.

Solutions/Other-CloudflareWorkers-How2use.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ categories: [技术思考]
99

1010
Cloudflare Workers 是一种基于 JavaScript 的无服务器计算平台,允许你在 Cloudflare 的边缘网络上运行代码,而无需管理传统的服务器基础设施。它能在全球范围内的 Cloudflare 数据中心上执行代码,以提供快速、低延迟的服务。
1111

12-
## 创建Cloudflare workers应用
12+
## 安装wrangler并登录
1313

1414
1. 安装`wrangler`
1515

@@ -59,7 +59,12 @@ Cloudflare Workers 是一种基于 JavaScript 的无服务器计算平台,允
5959
Set-ExecutionPolicy Restricted -Scope CurrentUser
6060
```
6161

62-
3. 创建Worker项目
62+
63+
## 创建Cloudflare workers应用
64+
65+
### 方式一 - 创建(v3及之前可用)
66+
67+
1. 创建Worker项目
6368

6469
创建一个名为`api`的项目:
6570

@@ -74,7 +79,7 @@ Cloudflare Workers 是一种基于 JavaScript 的无服务器计算平台,允
7479
compatibility_date = "2024-12-09"
7580
```
7681

77-
4. 编写Worker代码
82+
2. 编写Worker代码
7883

7984
在生成的`api`文件夹下,创建`index.js`文件并写入以下内容:
8085

@@ -96,7 +101,11 @@ Cloudflare Workers 是一种基于 JavaScript 的无服务器计算平台,允
96101
main = "index.js"
97102
```
98103
99-
5. 开发和测试
104+
### 方式二
105+
106+
## 测试开发部署
107+
108+
3. 开发和测试
100109
101110
使用以下命令在本地开发和测试:
102111

Solutions/Other-English-LearningNotes-SomeWords.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,8 @@ categories: [自用]
10741074
|esteem|n. 尊重,敬重,好评<br/>v. 尊重,敬重,认为,把...看作|
10751075
|||
10761076
|piston|n. 活塞|
1077+
|||
1078+
|postponement|n. 延期,推迟|
10771079

10781080
<p class="wordCounts">单词收录总数</p>
10791081

tryGoPy/MGJW/lastWeek/03/周报.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @Author: LetMeFly
33
* @Date: 2025-03-20 14:04:38
44
* @LastEditors: LetMeFly.xyz
5-
* @LastEditTime: 2025-03-30 17:07:38
5+
* @LastEditTime: 2025-03-31 18:03:29
66
-->
77
# 现在可以公开的情报
88

@@ -91,49 +91,49 @@ Hello World
9191

9292
开启也很简单:
9393

94-
![](pics/001.png)
94+
![](../../binaryFiles/pics/20250330/001.png)
9595

9696
在这上面右键
9797

98-
![](pics/002.png)
98+
![](../../binaryFiles/pics/20250330/002.png)
9999

100100
选择`打开“网络和Internet设置”`
101101

102-
![](pics/003.png)
102+
![](../../binaryFiles/pics/20250330/003.png)
103103

104104
记住“使用中”的那个
105105

106-
![](pics/004.png)
106+
![](../../binaryFiles/pics/20250330/004.png)
107107

108108
允许应用通过防火墙
109109

110-
![](pics/005.png)
110+
![](../../binaryFiles/pics/20250330/005.png)
111111

112112
入站规则-新建规则-端口-下一页
113113

114-
![](pics/006.png)
114+
![](../../binaryFiles/pics/20250330/006.png)
115115

116116
TCP - 这里以86端口为例 - 下一页
117117

118-
![](pics/007.png)
118+
![](../../binaryFiles/pics/20250330/007.png)
119119

120120
允许连接 - 下一页
121121

122-
![](pics/008.png)
122+
![](../../binaryFiles/pics/20250330/008.png)
123123

124124
这里记住刚才让你记住的东西了吗?选择对应的网络打开就好。
125125

126126
如果不放心,也可以三个都勾选上。
127127

128-
![](pics/009.png)
128+
![](../../binaryFiles/pics/20250330/009.png)
129129

130130
随便起个名字
131131

132-
![](pics/010.png)
132+
![](../../binaryFiles/pics/20250330/010.png)
133133

134134
然后发现内网外网都能正常访问了。
135135

136-
![](pics/011.png)
136+
![](../../binaryFiles/pics/20250330/011.png)
137137

138138
开启防火墙后,在其他设备上访问成功。
139139

@@ -183,15 +183,15 @@ python server.py
183183

184184
前端得到一个1x1的图片:
185185

186-
![](pics/012.png)
186+
![](../../binaryFiles/pics/20250330/012.png)
187187

188188
没错,就是这么小一个像素的图片。
189189

190190
单独看张这样:
191191

192192
图片在👇
193193

194-
![](pics/013.png)
194+
![](../../binaryFiles/pics/20250330/013.png)
195195

196196
图片在👆
197197

tryGoPy/MGJW/thisWeek/周报.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
* @Author: LetMeFly
33
* @Date: 2025-03-31 16:38:56
44
* @LastEditors: LetMeFly.xyz
5-
* @LastEditTime: 2025-03-31 17:02:56
5+
* @LastEditTime: 2025-04-01 14:32:55
66
-->
7+
# 上周回顾
8+
9+
710

811
# 将信标插入邮箱时后端出现乱码
912

0 commit comments

Comments
 (0)