本節(jié)主要復(fù)習(xí)的知識(shí)點(diǎn):
- 計(jì)算機(jī)是如何存儲(chǔ)數(shù)據(jù)的
- 軟件安裝
- 命令行基礎(chǔ)
- 腳本
- HTTP 入門(mén)
- Node.js Server
- HTML
- CSS
-
計(jì)算機(jī)是如何存儲(chǔ)數(shù)據(jù)的:
ASCII碼筒扒、GBK、unicode、UTF-8.......
js-13-01.png
- 命令行基礎(chǔ):
- pwd progress working dir
- cd change dir
- mkdir make dir
- touch
- echo "hi" > 1.txt
- echo "hi" >> 1.txt 追加
- echo "hi" >! 1.txt 強(qiáng)制覆蓋
- cp -r copy -recursive
- rm -rf remove -recursive/force
- mv
- tree windows里無(wú)
- git init
- git add xxx
- git commit -m"xxx"
- git pull
- git push
- git clone
- curl -L http://www.baidu.com L-重定向
- curl -s -v http://www.baidu.com 用來(lái)顯示請(qǐng)求/響應(yīng)
- ping qq.com
- hexo init
- hexo g
- hexo server
- hexo deploy
-
HTTP入門(mén)
請(qǐng)求與響應(yīng)實(shí)例:
a. GET請(qǐng)求與響應(yīng)
curl -s -v -H "Frank: xxx" -H "fr: yyy" -- "https://www.baidu.com"
請(qǐng)求內(nèi)容:> GET / HTTP/1.1 > Host: www.baidu.com > User-Agent: curl/7.55.0 > Accept: */* > Frank: xxx > fr: yyy >
響應(yīng):
< HTTP/1.1 200 OK < Accept-Ranges: bytes < Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform < Connection: Keep-Alive < Content-Length: 2443 < Content-Type: text/html < Date: Mon, 23 Apr 2018 07:23:45 GMT < Etag: "5886041d-98b" < Last-Modified: Mon, 23 Jan 2017 13:24:45 GMT < Pragma: no-cache < Server: bfe/1.0.8.18 < Set-Cookie: BDORZ=27315; max-age=86400; domain=.baidu.com; path=/ < { [1040 bytes data]
b. POST請(qǐng)求
curl -X POST -d "1234567890" -s -v -H "Frank: xxx" -- "https://www.baidu.com"
請(qǐng)求內(nèi)容:> POST / HTTP/1.1 > Host: www.baidu.com > User-Agent: curl/7.55.0 > Accept: */* > Frank: xxx > Content-Length: 10 > Content-Type: application/x-www-form-urlencoded > } [10 bytes data]
html入門(mén):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>草稿測(cè)試</title>
</head>
<body>
hello
</body>
</html>
注意:
- <meta charset="UTF-8">见转,如果后臺(tái)后設(shè)置charset谚中,則以后臺(tái)為準(zhǔn),權(quán)重:后臺(tái)協(xié)議>前端內(nèi)容;如果瀏覽器上顯示為亂碼吠勘,什么原因嗦董?母谎??京革?
- css入門(mén):
- 想要自己找一些好看的頁(yè)面素材以及psd可以訪問(wèn)以下兩個(gè)網(wǎng)站奇唤;
- margin與padding---用哪一個(gè)可以實(shí)現(xiàn)效果就用哪一個(gè)幸斥,padding與border-box配合使用不錯(cuò);