主頁 > 企業開發 > 通過H5C3完成回應式網頁(VIVO官網)

通過H5C3完成回應式網頁(VIVO官網)

2020-09-17 18:27:20 企業開發

該回應式網頁是通過CSS3中的媒體查詢完成的

HTML代碼如下

<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>vivo智能手機官方網站-5G智慧旗艦NEX 3</title>    <link rel="stylesheet" href="font/iconfont.css">    <link rel="stylesheet" href="css/reset.css">    <link rel="stylesheet" href="css/base.css">    <link rel="stylesheet" href="css/index.css">    <link rel="stylesheet" href="css/index-pad.css" media="screen and (max-width: 1199px)">    <link rel="stylesheet" href="css/index-phone.css" media="screen and (max-width: 768px)">    <link rel="shortcut icon" href="vivoLogo.ico" type="image/x-icon"></head><body>    <div class="header">        <div class="headerTop">            <ul class="headerLeft clearfix">                <li><a href="#">品牌</a></li>                <li><a href="#">Funtouch OS</a></li>                <li><a href="#">體驗店</a></li>                <li><a href="#">政企業務</a></li>                <li><a href="#">社區</a></li>            </ul>            <ul class="headerRight">                <li><a href="#">購物車</a></li>                <li><a href="#">注冊</a></li>                <li>|</li>                <li><a href="#">登錄</a></li>            </ul>        </div>        <div class="headerPhone">            <a href="#" class="iconfont icon-caidan"></a>            <h1><a href="#" class="iconfont icon-vivo"></a></h1>            <a href="#" class="iconfont icon-baobao"></a>        </div>        <div class="headerBottom">            <h1 class="logo"><a href="#" class="iconfont icon-vivo"></a></h1>            <ul class="nav clearfix nav1">                <li><a href="#">iQOO專區</a></li>                <li><a href="#">NEX系列</a></li>                <li><a href="#">X系列</a></li>                <li><a href="#">Z系列</a></li>                <li><a href="#">Y系列</a></li>                <li><a href="#">U系列</a></li>                <li><a href="#">商城</a></li>                <li><a href="#">服務</a></li>            </ul>            <ul class="nav clearfix nav2">                <li><a href="#">iQOO</a></li>                <li><a href="#">NEX</a></li>                <li><a href="#">X</a></li>                <li><a href="#">Z</a></li>                <li><a href="#">Y</a></li>                <li><a href="#">U</a></li>                <li><a href="#">商城</a></li>                <li><a href="#">服務</a></li>            </ul>            <div class="search">                <a href="#" class="iconfont icon-icon-"></a>            </div>        </div>    </div>    <div class="main">        <div class="mainTop">            <ul>                <li><a href="#"><img src="images/banner.jpg" alt=""></a></li>                <li><a href="#"><img src="images/banner-phone.jpg" alt=""></a></li>            </ul>            <ol class="clearfix">                <li></li>                <li></li>                <li></li>            </ol>            <div>                <i></i>                <i></i>                <i></i>                <p>                    <span>立即前往</span>                    <b></b>                </p>            </div>        </div>        <div class="mainBottom">            <div>                <div class="bottomText">                    <h2>NEX旗艦版</h2>                    <span>了解詳情</span>                </div>                <a href="#">                    <img src="images/vivo-promos-1.jpg" alt="">                </a>            </div>            <div>                <div class="bottomText">                    <h2>玩家嚴重IQOO是什么樣?</h2>                    <span>立即圍觀</span>                </div>                <a href="#">                    <img src="images/vivo-promos-2.jpg" alt="">                </a>            </div>            <div>                <div class="bottomText">                    <h2>Z1青春版</h2>                    <span>了解詳情</span>                </div>                <a href="#">                    <img src="images/vivo-promos-3.jpg" alt="">                </a>            </div>            <div>                <div class="bottomText">                    <h2>iQOO新品曬單</h2>                    <span>旗艦新品等你拿</span>                </div>                <a href="#">                    <img src="images/vivo-promos-4.jpg" alt="">                </a>            </div>        </div>    </div>    <div class="footer">        <div class="footerIn">            <div class="footerTop clearfix">                <div class="footerTopLeft fl">                    <dl>                        <dt>熱門鏈接</dt>                        <dd>NEX雙屏版</dd>                        <dd>X23</dd>                        <dd>Z3</dd>                        <dd>vivo攝影</dd>                        <dd>查找手機</dd>                        <dd>常見問題</dd>                    </dl>                    <dl>                        <dt>在線購買</dt>                        <dd>官方商城</dd>                        <dd>選購手機</dd>                        <dd>選購配件</dd>                        <dd>政企服務</dd>                        <dd>以舊換新</dd>                        <dd>服務保障</dd>                    </dl>                    <dl>                        <dt>服務支持</dt>                        <dd>服務首頁</dd>                        <dd>服務網點查詢</dd>                        <dd>真偽查詢</dd>                        <dd>服務政策</dd>                        <dd>預約維修</dd>                        <dd>維修配件價格</dd>                    </dl>                    <dl>                        <dt>vivo社區</dt>                        <dd>社區首頁</dd>                        <dd>攝影專區</dd>                        <dd>貼吧</dd>                        <dd>興趣部落</dd>                        <dd>新手課堂</dd>                        <dd>社區規則</dd>                    </dl>                    <dl>                        <dt>關于vivo</dt>                        <dd>vivo簡介</dd>                        <dd>作業機會</dd>                        <dd>新聞資訊</dd>                        <dd>采購平臺</dd>                        <dd>開發者平臺</dd>                    </dl>                </div>                <div class="footerTopRight fr">                    <p><a href="#" class="iconfont icon-liaotian">在線客服</a>                    <p>400-678-9688</p>                    <p>24小時全國服務熱線</p>                </div>            </div>            <div class="footerBottom clearfix">                <div class="footerBottomRight fr">                    <a href="#">關于VIVO</a>                    <a href="#"class="iconfont icon-wanggediqiu">中國</a>                </div>                <div class="footerBottomLeft fl">                    <i>Copyright ©2011-2019 廣東步步高電子工業有限公司 著作權所有 保留一切權利</i>                    |                    <a href="#">隱私政策</a>                    |                    <a href="#">法律宣告</a>                    |                    <a href="#">粵B2-20080267</a>                    |                    <a href="#">粵ICP備05100288號</a>                    <img src="images/gssw-icon.png" alt="">                </div>            </div>        </div>    </div></body></html>

 

pc端的css檔案名為index.css,當瀏覽器的寬度width >= 1200px時,默認的就是PC端,它也是默認的css檔案,代碼如下:

/*頂部開始*/.header{    width: 100%;    position: absolute;    left: 0;    top: 0;    z-index: 10;}.header>.headerTop{    width: 100%;    height: 40px;    background: #333;    /*height: 40px;*/    line-height: 40px;    padding: 0 48px;    box-sizing: border-box;    display: flex;    justify-content: space-between;}.headerTop>ul{    list-style: none;    color: #ccc;}.headerTop>ul>li{    float: left;    margin-right: 42px;}.headerTop>ul>li:last-child{    margin-right: 0;}.headerTop>ul>li>a{    font-size: 14px;    color: #ccc;    font-weight: 400;}.headerTop>ul>li>a:hover{    color: #666;}.header>.headerBottom{    width: 1200px;    height: 60px;    margin: 0 auto;    /*background: red;*/    display: flex;    justify-content: space-between;}.headerBottom>.logo{    height: 60px;    line-height: 60px;}.headerBottom>.logo>a{    color: #fff;    font-size: 100px;}.headerBottom>.logo:hover a{    color: #417aff;}.headerBottom>.nav{    list-style: none;    /*margin-left: 135px;*/    height: 60px;    line-height: 60px;    /*float: left;*/}.headerBottom>.nav>li{    float: left;    margin: 0 28px;}.headerBottom>.nav>li>a{    font-size: 16px;    color: #000;}.headerBottom>.nav>li:hover a{    color: #417aff;}.headerBottom>.search{    line-height: 60px;}.headerBottom>.search>a{    font-size: 30px;    color: #ccc;}/*頂部結束*//*內容開始*/.main{    width: 100%;    margin-top: 40px;}.main>.mainTop{    width: 100%;    position: relative;}.main>.mainTop img{    width: 100%;    vertical-align: bottom;}.main>.mainTop>ol{    list-style: none;    position: absolute;    left: 50%;    transform: translateX(-50%);    bottom: 40px;}.main>.mainTop>ol>li{    float: left;    width: 55px;    height: 4px;    background: rgba(255,255,255,0.5);    margin: 0 8px;}.main>.mainTop>div{    position: absolute;    top: 50%;    transform: translateY(-50%);    left: 20%;}.main>.mainTop>div>i{    display: block;    width: 304px;    height: 45px;    /*background-color: red;*/    background-image: url("../images/vivo-banner-title1.png");    background-repeat: no-repeat;}.main>.mainTop>div>i:nth-child(2){    background-image: url("../images/vivo-banner-title2.png");    background-repeat: no-repeat;}.main>.mainTop>div>i:nth-child(3){    background-image: url("../images/vivo-banner-title3.png");    background-repeat: no-repeat;}.main>.mainTop>div>p{    width: 304px;    text-align: center;    color: rgba(255,255,255,0.5);    margin-top: 30px;    transition: all 0.5s;}.main>.mainTop>div>p:hover{    color: #fff;}.main>.mainTop>div>p:hover b{    width: 80px;    background: #fff;}.main>.mainTop>div>p>span{    display: block;}.main>.mainTop>div>p>b{    display: inline-block;    width: 30px;    height: 2px;    background: rgba(255,255,255,0.5);    margin-bottom: 10px;    transition: all 0.5s;}.main>.mainBottom{    width: 100%;    display: flex;    margin-top: 5px;}.main>.mainBottom>div{    flex: 1;    overflow: hidden;    position: relative;    height: 300px;}.main>.mainBottom>div img{    position: absolute;    left: 50%;    transform: translateX(-50%);}.main>.mainBottom>div>.bottomText{    position: absolute;    top: 26px;    left: 50%;    transform: translateX(-50%);    z-index: 7;    text-align: center;    color: #333;}.main>.mainBottom>div:nth-child(even)>.bottomText{    color: #fff;}.main>.mainBottom>div>.bottomText>h2{    /*height: 21px;*/    /*line-height: 21px;*/    font-size: 16px;    font-weight: 500;    margin-bottom: 10px;}.main>.mainBottom>div>.bottomText>span{    font-size: 14px;text-align: center;}/*內容結束*//*底部開始*/.footer{    width: 100%;}.footer>.footerIn{    width: 1200px;    margin: 0 auto;}.footerIn>.footerTop{    width: 100%;    /*height: 600px;*/    margin: 0 auto;    padding-top: 60px;    padding-bottom: 76px;    border-bottom: 1px solid #666;}.footer>.footerIn>.footerTop>.footerTopLeft{    width: 75%;    display: flex;    justify-content: space-between;}.footerTop>.footerTopLeft>dl>dt{    font-size: 16px;    font-weight: 700;    line-height: 17px;    margin-bottom: 40px;}.footerTop>.footerTopLeft>dl>dd{    color: #666;    font-size: 14px;    line-height: 17px;    margin-bottom: 18px;}.footer>.footerIn>.footerTop>.footerTopRight{    width: 25%;    text-align: center;}.footerTop>.footerTopRight>p>a{    font-size: 22px;    color: #333;}.footerTop>.footerTopRight>p:nth-child(2){    color: #415fff;    font-size: 24px;    margin-top: 60px;}.footerTop>.footerTopRight>p:nth-child(3){    font-size: 14px;    color: #333;}.footerBottom>.footerBottomLeft{    padding: 10px 0;    font-size: 12px;    color: #666;}.footerBottom>.footerBottomLeft i{    font-style: normal;    font-size: 12px;    color: #666;}.footerBottom>.footerBottomLeft a{    font-size: 12px;    color: #666;}.footerBottomRight a{    font-size: 12px;    color: #666;}.footerBottomRight a:last-child{    margin-left: 60px;}/*底部結合*//*回應式網頁兼容開始*/.nav2{    display: none;}.headerPhone{    display: none;}.main>.mainTop>ul>li:nth-child(2){    display: none;}/*回應式網頁兼容結束*/

 

pad端的css檔案名為index-pad.css,當瀏覽器的寬度width <= 1199px時,就會呼叫該css檔案,代碼如下:

/*頂部開始*/.nav2{    display: block;}.nav1{    display: none;}.header>.headerBottom{    width: 100%;    padding: 0 40px;    box-sizing: border-box;}.headerBottom>.nav>li{    margin: 0 20px;}/*頂部結束*//*內容開始*/.main>.mainTop>div>i{    width: 200px;    height: 30px;    background-image: url("../images/vivo-banner-title1-mini.png");}.main>.mainTop>div>i:nth-child(2){    background-image: url("../images/vivo-banner-title2-mini.png");}.main>.mainTop>div>i:nth-child(3){    background-image: url("../images/vivo-banner-title3-mini.png");}.main>.mainTop>div>p{    width: 200px;    margin-top: 20px;}.main>.mainBottom{    flex-wrap: wrap;    margin-top: 0;}.main>.mainBottom>div{    flex: none;    width: 50%;    margin-top: 5px;}/*內容結束*//*底部開始*/.footer>.footerIn{    width: 100%;    padding: 0 20px;    box-sizing: border-box;}.footerBottomLeft{    float: none;    width: auto;    margin-right: 25%;}/*底部結束*/

 

手機端的css檔案名為index-phone.css,當瀏覽器的寬度width <= 768px時,就會呼叫該css檔案,具體代碼如下:

/*頂部開始*/.header>.headerTop{    display: none;}.header>.headerBottom{    display: none;}.header>.headerPhone{    height: 100%;    display: flex;    justify-content: space-between;    line-height: 100px;}.header>.headerPhone>a{    font-size: 25px;    color: #fff;}.header>.headerPhone>h1>a{    font-size: 100px;    color: #fff;}/*頂部結束*//*內容開始*/.main{    margin-top: 0;}.main>.mainTop>ul>li:nth-child(1){    display: none;}.main>.mainTop>ul>li:nth-child(2){    display: block;}.main>.mainTop>div{    display: none;}.main>.mainBottom>div{    width: 100%;}.main>.mainBottom>div img{    width: 100%;    height: 100%;}/*內容結束*//*底部開始*/.footer>.footerIn{    padding: 0 60px;    box-sizing: border-box;}.footer>.footerIn>.footerTop>.footerTopLeft{    float: none;    width: 100%;    flex-wrap: wrap;}.footerTop>.footerTopLeft>dl{    width: 100%;}.footer>.footerIn>.footerTop>.footerTopRight{    float: none;    width: 100%;}.footerTop>.footerTopLeft>dl>dt{    font-size: 25px;    color: #666;    font-weight: 400;    padding-bottom: 20px;}.footerTop>.footerTopLeft>dl>dt::after{    content: "";    float: right;    width: 20px;    height: 20px;    background-image: url(../images/add.png);    background-repeat: no-repeat;    background-position: center center;    background-size: 20px 20px;}.footerTop>.footerTopLeft>dl>dd{    display: none;}.footer>.footerIn>.footerTop>.footerTopRight p:nth-child(1){    float: left;}.footer>.footerIn>.footerTop>.footerTopRight p:nth-child(1) a{    font-size: 30px;    color: #415fff;}.footer>.footerIn>.footerTop>.footerTopRight p{    text-align: right;}.footer>.footerIn>.footerTop>.footerTopRight p:nth-child(3){    font-size: 18px;}.footer>.footerIn>.footerBottom>.footerBottomRight{    float: none;}.footer>.footerIn>.footerBottom>.footerBottomRight a{    font-size: 25px;    padding: 10px 0;}.footerBottom>.footerBottomLeft{    font-size: 18px;}.footerBottom>.footerBottomLeft i,.footerBottom>.footerBottomLeft a{    font-size: 18px;}/*底部結束*/

 

完成之后的具體樣式如下:

1,pc端界面

 

 

 

 

2,pad端界面

 

 

 

3,手機端界面

 

轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/67729.html

標籤:Html/Css

上一篇:瀏覽器中常見的html語意化標簽

下一篇:H5新增特性之語意化標簽

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • IEEE1588PTP在數字化變電站時鐘同步方面的應用

    IEEE1588ptp在數字化變電站時鐘同步方面的應用 京準電子科技官微——ahjzsz 一、電力系統時間同步基本概況 隨著對IEC 61850標準研究的不斷深入,國內外學者提出基于IEC61850通信標準體系建設數字化變電站的發展思路。數字化變電站與常規變電站的顯著區別在于程序層傳統的電流/電壓互 ......

    uj5u.com 2020-09-10 03:51:52 more
  • HTTP request smuggling CL.TE

    CL.TE 簡介 前端通過Content-Length處理請求,通過反向代理或者負載均衡將請求轉發到后端,后端Transfer-Encoding優先級較高,以TE處理請求造成安全問題。 檢測 發送如下資料包 POST / HTTP/1.1 Host: ac391f7e1e9af821806e890 ......

    uj5u.com 2020-09-10 03:52:11 more
  • 網路滲透資料大全單——漏洞庫篇

    網路滲透資料大全單——漏洞庫篇漏洞庫 NVD ——美國國家漏洞庫 →http://nvd.nist.gov/。 CERT ——美國國家應急回應中心 →https://www.us-cert.gov/ OSVDB ——開源漏洞庫 →http://osvdb.org Bugtraq ——賽門鐵克 →ht ......

    uj5u.com 2020-09-10 03:52:15 more
  • 京準講述NTP時鐘服務器應用及原理

    京準講述NTP時鐘服務器應用及原理京準講述NTP時鐘服務器應用及原理 安徽京準電子科技官微——ahjzsz 北斗授時原理 授時是指接識訓通過某種方式獲得本地時間與北斗標準時間的鐘差,然后調整本地時鐘使時差控制在一定的精度范圍內。 衛星導航系統通常由三部分組成:導航授時衛星、地面檢測校正維護系統和用戶 ......

    uj5u.com 2020-09-10 03:52:25 more
  • 利用北斗衛星系統設計NTP網路時間服務器

    利用北斗衛星系統設計NTP網路時間服務器 利用北斗衛星系統設計NTP網路時間服務器 安徽京準電子科技官微——ahjzsz 概述 NTP網路時間服務器是一款支持NTP和SNTP網路時間同步協議,高精度、大容量、高品質的高科技時鐘產品。 NTP網路時間服務器設備采用冗余架構設計,高精度時鐘直接來源于北斗 ......

    uj5u.com 2020-09-10 03:52:35 more
  • 詳細解讀電力系統各種對時方式

    詳細解讀電力系統各種對時方式 詳細解讀電力系統各種對時方式 安徽京準電子科技官微——ahjzsz,更多資料請添加VX 衛星同步時鐘是我京準公司開發研制的應用衛星授時時技術的標準時間顯示和發送的裝置,該裝置以M國全球定位系統(GLOBAL POSITIONING SYSTEM,縮寫為GPS)或者我國北 ......

    uj5u.com 2020-09-10 03:52:45 more
  • 如何保證外包團隊接入企業內網安全

    不管企業規模的大小,只要企業想省錢,那么企業的某些服務就一定會采用外包的形式,然而看似美好又經濟的策略,其實也有不好的一面。下面我通過安全的角度來聊聊使用外包團的安全隱患問題。 先看看什么服務會使用外包的,最常見的就是話務/客服這種需要大量重復性、無技術性的服務,或者是一些銷售外包、特殊的職能外包等 ......

    uj5u.com 2020-09-10 03:52:57 more
  • PHP漏洞之【整型數字型SQL注入】

    0x01 什么是SQL注入 SQL是一種注入攻擊,通過前端帶入后端資料庫進行惡意的SQL陳述句查詢。 0x02 SQL整型注入原理 SQL注入一般發生在動態網站URL地址里,當然也會發生在其它地發,如登錄框等等也會存在注入,只要是和資料庫打交道的地方都有可能存在。 如這里http://192.168. ......

    uj5u.com 2020-09-10 03:55:40 more
  • [GXYCTF2019]禁止套娃

    git泄露獲取原始碼 使用GET傳參,引數為exp 經過三層過濾執行 第一層過濾偽協議,第二層過濾帶引數的函式,第三層過濾一些函式 preg_replace('/[a-z,_]+\((?R)?\)/', NULL, $_GET['exp'] (?R)參考當前正則運算式,相當于匹配函式里的引數 因此傳遞 ......

    uj5u.com 2020-09-10 03:56:07 more
  • 等保2.0實施流程

    流程 結論 ......

    uj5u.com 2020-09-10 03:56:16 more
最新发布
  • 使用Django Rest framework搭建Blog

    在前面的Blog例子中我們使用的是GraphQL, 雖然GraphQL的使用處于上升趨勢,但是Rest API還是使用的更廣泛一些. 所以還是決定回到傳統的rest api framework上來, Django rest framework的官網上給了一個很好用的QuickStart, 我參考Qu ......

    uj5u.com 2023-04-20 08:17:54 more
  • 記錄-new Date() 我忍你很久了!

    這里給大家分享我在網上總結出來的一些知識,希望對大家有所幫助 大家平時在開發的時候有沒被new Date()折磨過?就是它的諸多怪異的設定讓你每每用的時候,都可能不小心踩坑。造成程式意外出錯,卻一下子找不到問題出處,那叫一個煩透了…… 下面,我就列舉它的“四宗罪”及應用思考 可惡的四宗罪 1. Sa ......

    uj5u.com 2023-04-20 08:17:47 more
  • 使用Vue.js實作文字跑馬燈效果

    實作文字跑馬燈效果,首先用到 substring()截取 和 setInterval計時器 clearInterval()清除計時器 效果如下: 實作代碼如下: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta ......

    uj5u.com 2023-04-20 08:12:31 more
  • JavaScript 運算子

    JavaScript 運算子/運算子 在 JavaScript 中,有一些運算子可以使代碼更簡潔、易讀和高效。以下是一些常見的運算子: 1、可選鏈運算子(optional chaining operator) ?.是可選鏈運算子(optional chaining operator)。?. 可選鏈操 ......

    uj5u.com 2023-04-20 08:02:25 more
  • CSS—相對單位rem

    一、概述 rem是一個相對長度單位,它的單位長度取決于根標簽html的字體尺寸。rem即root em的意思,中文翻譯為根em。瀏覽器的文本尺寸一般默認為16px,即默認情況下: 1rem = 16px rem布局原理:根據CSS媒體查詢功能,更改根標簽的字體尺寸,實作rem單位隨螢屏尺寸的變化,如 ......

    uj5u.com 2023-04-20 08:02:21 more
  • 我的第一個NPM包:panghu-planebattle-esm(胖虎飛機大戰)使用說明

    好家伙,我的包終于開發完啦 歡迎使用胖虎的飛機大戰包!! 為你的主頁添加色彩 這是一個有趣的網頁小游戲包,使用canvas和js開發 使用ES6模塊化開發 效果圖如下: (覺得圖片太sb的可以自己改) 代碼已開源!! Git: https://gitee.com/tang-and-han-dynas ......

    uj5u.com 2023-04-20 08:01:50 more
  • 如何在 vue3 中使用 jsx/tsx?

    我們都知道,通常情況下我們使用 vue 大多都是用的 SFC(Signle File Component)單檔案組件模式,即一個組件就是一個檔案,但其實 Vue 也是支持使用 JSX 來撰寫組件的。這里不討論 SFC 和 JSX 的好壞,這個仁者見仁智者見智。本篇文章旨在帶領大家快速了解和使用 Vu ......

    uj5u.com 2023-04-20 08:01:37 more
  • 【Vue2.x原始碼系列06】計算屬性computed原理

    本章目標:計算屬性是如何實作的?計算屬性快取原理以及洋蔥模型的應用?在初始化Vue實體時,我們會給每個計算屬性都創建一個對應watcher,我們稱之為計算屬性watcher ......

    uj5u.com 2023-04-20 08:01:31 more
  • http1.1與http2.0

    一、http是什么 通俗來講,http就是計算機通過網路進行通信的規則,是一個基于請求與回應,無狀態的,應用層協議。常用于TCP/IP協議傳輸資料。目前任何終端之間任何一種通信方式都必須按Http協議進行,否則無法連接。tcp(三次握手,四次揮手)。 請求與回應:客戶端請求、服務端回應資料。 無狀態 ......

    uj5u.com 2023-04-20 08:01:10 more
  • http1.1與http2.0

    一、http是什么 通俗來講,http就是計算機通過網路進行通信的規則,是一個基于請求與回應,無狀態的,應用層協議。常用于TCP/IP協議傳輸資料。目前任何終端之間任何一種通信方式都必須按Http協議進行,否則無法連接。tcp(三次握手,四次揮手)。 請求與回應:客戶端請求、服務端回應資料。 無狀態 ......

    uj5u.com 2023-04-20 08:00:32 more