-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
297 lines (176 loc) · 12.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>我的第一个博客</title>
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="generator" content="Hugo 0.75.1" />
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<link href="/dist/css/app.4fc0b62e4b82c997bb0041217cd6b979.css" rel="stylesheet">
<link href="/index.xml" rel="alternate" type="application/rss+xml" title="我的第一个博客" />
<link href="/index.xml" rel="feed" type="application/rss+xml" title="我的第一个博客" />
<meta property="og:title" content="我的第一个博客" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://pccmast.github.io/" />
<meta property="og:updated_time" content="2021-03-17T19:43:05+08:00" />
<meta itemprop="name" content="我的第一个博客">
<meta itemprop="description" content="">
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="我的第一个博客"/>
<meta name="twitter:description" content=""/>
</head>
<body class="ma0 avenir bg-near-white">
<header>
<div class="pb3-m pb6-l bg-black">
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center">
<a href="/" class="f3 fw2 hover-white no-underline white-90 dib">
我的第一个博客
</a>
<div class="flex-l items-center">
</div>
</div>
</nav>
<div class="tc-l pv3 ph3 ph4-ns">
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
我的第一个博客
</h1>
</div>
</div>
</header>
<main class="pb7" role="main">
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
</article>
<div class="pa3 pa4-ns w-100 w-70-ns center">
<h1 class="flex-none">
Recent Posts
</h1>
<section class="w-100 mw8">
<div class="relative w-100 mb4">
<article class="bb b--black-10">
<div class="db pv4 ph3 ph0-l no-underline dark-gray">
<div class="flex flex-column flex-row-ns">
<div class="blah w-100">
<h1 class="f3 fw1 athelas mt0 lh-title">
<a href="http://pccmast.github.io/posts/url/" class="color-inherit dim link">
Url
</a>
</h1>
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
URL:Uniform Resource Locator 出现的都是ASCII字符,中文会被转码。
统一资源定位符, 包括协议、域名、路径、查询参数、锚点。
协议:代表访问的协议,一般为http或者https或者ftp等等
查询参数:与路径之间用问号分割。
host:主机名、域名
port:端口号:默认使用80端口(http协议)
锚点:浏览器用来做页面定位的
DNS: Domain Name System DNS是一个按层次结构排列的分布式系统,由许多DNS服务器组成。DNS服务器是注册加入DNS的任何计算机。它具有域名和IP地址的索引,并且在请求时,它可以告诉您与域名关联的当前IP地址。
输入nslookup命令,结果中的默认服务器就是 dns 服务器的域名和地址
nslookup 命令 nslookup 参数 domain [dns-server] dns-server:指定dns服务器,如果没有指定用自带的。
domain:要查询的域名或者ip地址
参数:-type -timeout 等等
IP协议 IP实现两个基本功能:寻址和分段。
IP可以根据数据报报头中包括的目的地址将数据报传送到目的地址,在此过程中IP负责选择传送的道路,这种选择道路称为路由功能。如果有些网络内只能传送小数据报,IP可以将数据报重新组装并在报头域内注明。IP模块中包括这些基本功能,这些模块存在于网络中的每台主机和网关上,而且这些模块(特别在网关上)有路由选择和其它服务功能。
ping命令 Ping 127.0.0.1 Ping回送地址是为了检查本地的TCP/IP协议有没有设置好
Ping本机IP地址 Ping本机IP地址, 这样是为了检查本机的IP地址是否设置有误
Ping网关地址 Ping本网网关或本网IP地址,这样的是为了检查硬件设备是否有问题,也可以检查本机与本地网络连接是否正常
Ping远程地址 (在非局域网中这一步骤可以忽略)Ping远程IP地址,这主要是检查本网或本机与外部的连接是否正常
## 域名
顶级域名
顶级域名(TLD, Top-Level Domain)可以告诉用户域名所提供的服务类型。最通用的顶级域名(.com, .org, .net)不需要web服务器满足严格的标准,但一些顶级域名则执行更严格的政策。比如:
地区的顶级域名,如.us,.fr,或.sh,可以要求必须提供给定语言的服务器或者托管在指定国家。这些TLD通常表明对应的网页服务从属于何种语言或哪个地区。 包含.gov的顶级域名只能被政府部门使用。 .edu只能为教育或研究机构使用。 Secondary Level Domain, 二级域名
刚好位于TLD前面的标签也被称为二级域名 (SLD)。一个域名可以有多个标签(或者说是组件),没有强制规定必须要3个标签来构成域名。例如,www.inf.ed.ac.uk 是一个正确的域名。当拥有了“上级”部分(例如 mozilla.org),你还可以创建另外的域名 (有时被称为 “子域名”) (例如 developer.mozilla.org).
</div>
<a href="http://pccmast.github.io/posts/url/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
</div>
</div>
</div>
</article>
</div>
<div class="relative w-100 mb4">
<article class="bb b--black-10">
<div class="db pv4 ph3 ph0-l no-underline dark-gray">
<div class="flex flex-column flex-row-ns">
<div class="blah w-100">
<h1 class="f3 fw1 athelas mt0 lh-title">
<a href="http://pccmast.github.io/posts/html-element/" class="color-inherit dim link">
Html Element
</a>
</h1>
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
a 标签 当点击一个链接或按钮时,打开一个新的电子邮件发送信息而不是连接到一个资源或页面,这种情况是可能做到的。这样做是使用元素和mailto:URL的方案。 其最基本和最常用的使用形式为一个mailto:link (链接),链接简单说明收件人的电子邮件地址。例如:
<a href="mailto:nowhere@mozilla.org">向 nowhere 发邮件</a>
真实案例: 每个字段的值必须是URL编码的。 也就是说,不能有非打印字符(不可见字符比如制表符、换行符、分页符)和空格 percent-escaped. 同时注意使用问号(?)来分隔主URL与参数值,以及使用&符来分隔mailto:中的各个参数。
<a href="mailto:nowhere@mozilla.org?cc=name2@rapidtables.com&bcc=name3@rapidtables.com&subject=The%20subject%20of%20the%20email&body=The%20body%20of%20the%20email"> Send mail with cc, bcc, subject and body </a> a标签的超链接还可以设置链接到QQ、迅雷、:
tencent://temp-chat?QQ=XXX? thunder://... href值还可以为空:当使用a标签来做按钮,不需要跳转时,href值即为空。
a标签的download属性 (HTML5) 此属性指示浏览器下载 URL 而不是导航到它,因此将提示用户将其保存为本地文件。如果属性有一个值(可以没有值),那么此值将在下载保存过程中作为预填充的文件名(如果用户需要,仍然可以更改文件名)。
如果同时有target="_blank"与download=“result.jpg” 只会跳转到新的网页(只有target生效)
img 标签 img的src为空:当前地址
img的属性<usemap="#">用来做选座页面
usemap 属性将图像定义为客户端图像映射(图像映射image-map指带有可点击区域的图像)。 usemap 属性与 <map> 元素的 name 或 id 属性相关联,以建立<img> 与<map> 之间的关系。那么指定的区域用map包裹的area标签来指定
table 标签 table属性 border:线宽,指定宽度 caption:标题 thead:table head的行,里面的单元格可以变成 th tbody:表体,里面用 tr:table row td:单元格 table data tfoot:表尾 ,定义了一组表格中各列的汇总行。里面用td(推荐)、th都行。 th、td的跨列、跨行:标签增加属性。 colspan=2,跨2列 rowspan=2 跨2行
</div>
<a href="http://pccmast.github.io/posts/html-element/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
</div>
</div>
</div>
</article>
</div>
<div class="relative w-100 mb4">
<article class="bb b--black-10">
<div class="db pv4 ph3 ph0-l no-underline dark-gray">
<div class="flex flex-column flex-row-ns">
<div class="blah w-100">
<h1 class="f3 fw1 athelas mt0 lh-title">
<a href="http://pccmast.github.io/posts/%E7%BA%BF%E7%A8%8B/" class="color-inherit dim link">
线程
</a>
</h1>
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
线程 一个Java程序实际上是一个JVM进程,JVM进程用一个主线程来执行main()方法,在main()方法内部,我们又可以启动多个线程。此外,JVM还有负责垃圾回收的其他工作线程等。
因此,对于大多数Java程序来说,我们说多任务,实际上是说如何使用多线程实现多任务。
创建新线程 class Thread implements Runnable 我们需要实例化一个Thread实例,然后调用它的start()方法。为新线程添加要做的事情,有以下两种方法:
从Thread派生一个自定义类,然后覆写run()方法 public class Main { public static void main(String[] args) { Thread t = new Thread(new MyRunnable()); t.start(); // 启动新线程 } } class MyRunnable implements Runnable { @Override public void run() { System.out.println("start new thread!"); } } 创建Thread实例时,传入一个Runnable实例:(Runnable是一个抽象类,需要重写run方法) public class Main { public static void main(String[] args) { Thread t = new Thread(new MyRunnable()); t.
</div>
<a href="http://pccmast.github.io/posts/%E7%BA%BF%E7%A8%8B/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
</div>
</div>
</div>
</article>
</div>
</section>
<section class="w-100">
<h1 class="f3">More</h1>
<h2 class="f5 fw4 mb4 dib mr3">
<a href="http://pccmast.github.io/posts/hashmap%E7%9A%84%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90/" class="link black dim">
Hashmapimplements
</a>
</h2>
<h2 class="f5 fw4 mb4 dib mr3">
<a href="http://pccmast.github.io/posts/%E6%88%91%E7%9A%84%E7%AC%AC%E4%BA%8C%E7%AF%87%E5%8D%9A%E5%AE%A2/" class="link black dim">
包管理与Maven
</a>
</h2>
<h2 class="f5 fw4 mb4 dib mr3">
<a href="http://pccmast.github.io/posts/my-first-post/" class="link black dim">
My First Post
</a>
</h2>
<a href="http://pccmast.github.io/posts/" class="link db f6 pa2 br3 bg-mid-gray white dim w4 tc">All Posts</a>
</section>
</div>
</main>
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="http://pccmast.github.io/" >
© 我的第一个博客 2021
</a>
<div>
</div>
</div>
</footer>
<script src="/dist/js/app.3fc0f988d21662902933.js"></script>
</body>
</html>