jQuery實現商品樓層和電梯功能

来源:https://www.cnblogs.com/chenyingying0/archive/2020/03/03/12404238.html
-Advertisement-
Play Games

效果圖 floor.html <!DOCTYPE html> <html lang="zh-CN"><!-- 設置簡體中文 --> <head> <meta charset="UTF-8"> <title>floor</title> <link rel="stylesheet" href="../c ...


效果圖

floor.html

<!DOCTYPE html>
<html lang="zh-CN"><!-- 設置簡體中文 -->
<head>
    <meta charset="UTF-8">
    <title>floor</title>
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/floor.css">
</head>
<body>
    <!-- 1F -->
    <div class="floor">
        <div class="container">
            <img src="../img/floor-loading.gif">
        </div>
    </div>

    <!-- 2F一 -->
    <div class="floor">
        <div class="container">
            <img src="../img/floor-loading.gif">
        </div>
    </div>

    <!-- 3F -->
    <div class="floor" >
        <div class="container">
            <img src="../img/floor-loading.gif">
        </div>
    </div>

    <!-- 4F -->
    <div class="floor">
        <div class="container">
            <img src="../img/floor-loading.gif">
        </div>
    </div>

    <!-- 5F -->
    <div class="floor">
        <div class="container">
            <img src="../img/floor-loading.gif">
        </div>
    </div>

    <!-- elevator -->    
    <div class="elevator container" id="elevator">
        <a href="javascript:;" class="elevator-item">
            <span class="elevator-num">F1</span>
            <span class="elevator-text">服飾</span>
        </a>
        <a href="javascript:;" class="elevator-item">
            <span class="elevator-num">F2</span>
            <span class="elevator-text">美妝</span>
        </a>
        <a href="javascript:;" class="elevator-item">
            <span class="elevator-num">F3</span>
            <span class="elevator-text">手機</span>
        </a>
        <a href="javascript:;" class="elevator-item">
            <span class="elevator-num">F4</span>
            <span class="elevator-text">家電</span>
        </a>
        <a href="javascript:;" class="elevator-item">
            <span class="elevator-num">F5</span>
            <span class="elevator-text">數位</span>
        </a>
    </div>

    <script src="../js/jquery.js"></script>
    <script src="../js/transition.js"></script>
    <script src="../js/showhide.js"></script>
    <script src="../js/tab2.js"></script>
    <script src="../js/floor.js"></script>
</body>
</html>

base.css  https://www.cnblogs.com/chenyingying0/p/12363689.html
floor.css

/*基本樣式    */
    .container{
        width:1200px;
        margin:0 auto;
    }
    .transition{
        -webkit-transition:all .5s;
        -moz-transition:all .5s;
        -ms-transition:all .5s;
        -o-transition:all .5s;
        transition:all .5s;
    }
    .text-hidden{
        text-indent:-9999px;
        overflow:hidden;
    }
    .fl{
        float:left;
    }
/*floor樓層區域*/
    .floor{
        margin-top:7px;
        height:534px;
    }
    .floor .container{
        position: relative;
        z-index:1;
    }
    .tab-head{
        height:68px;
        border-bottom:1px solid #f01414;
    }
    .tab-head-title{
        margin-top:22px;
    }
    .tab-head-title-num{
        display: inline-block;
        width:24px;
        height:24px;
        border-radius:50%;
        background-color:#07111b;
        color:#fff;
        text-align: center;
        line-height:24px;
        margin-right:10px;
    }
    .tab-head-title-name{
        font-size:20px;
        color:#07111b;
        position: relative;
        top:3px;
    }
    .tab-head-item-wrap{
        margin-top:8px;
        height:62px;
        line-height:62px;
    }
    .tab-head-item{
        display: inline-block;
        font-size:14px;    
        color:#93999f;
        margin-right:16px;
    }
    .tab-head-item-active{
        color:#f01414;
        background:url(../img/floor-arrow.png) center bottom no-repeat;
    }
    .tab-head-item-divider{
        display: inline-block;
        width:1px;
        height:14px;
        background-color:#d9dde1;
        margin-top:21px;
        margin-right:16px;
    }
    .tab-body{
        height:466px;
    }
    .tab-body-panel{
        height:466px;
        display: none;
    }
    .tab-body-panel-item{
        width:200px;
        height:233px;
        text-align: center;
    }
    .tab-body-panel-item:hover{
        box-shadow:0 0 10px rgba(0,0,0,.2);
    }
    .tab-body-panel-item-pic{
        margin-top:24px;
    }
    .tab-body-panel-item-name{
        margin-top:23px;
        font-size:12px;
        color:#07111b;
    }
    .tab-body-panel-item-price{
        margin-top:9px;
        font-size:14px;
        color:#f01414;
    }

/*elevator*/
    .elevator{
        position: fixed;
        left:50%;
        top:50%;
        margin-top:-90px;
        margin-left:-640px;
        /*container寬度1200px,50%是-600px,再移動-40px左右的距離*/
    }
    .elevator-item{
        width:24px;
        height:35px;
        display: block;
        line-height: 35px;
        text-align: center;
        color:#4d555d;
        border-top:1px solid #d9dde1;
    }
    .elevator-item:hover,
    .elevator-item-active{
        color:#f01414;
    }
    .elevator-num{

    }
    .elevator-text{
        display: none;
    }
    .elevator-item:hover .elevator-num,
    .elevator-item-active .elevator-num{
        display: none;
    }
    .elevator-item:hover .elevator-text,
    .elevator-item-active .elevator-text{
        display: block;
    }

transition.js https://www.cnblogs.com/chenyingying0/p/12363649.html
showhide.js https://www.cnblogs.com/chenyingying0/p/12363707.html
tab2.js https://www.cnblogs.com/chenyingying0/p/12384972.html
floor.js

// 不要暴露在全局,使用匿名函數自執行
(function($){

    "use strict";

//floor
    var $floor=$(".floor");

    //樓層數據
    var floorData=[
        {
            num:"1",
            text:"服裝箱包",
            tabs:["大牌","男裝","女裝"],
            offsetTop:$floor.eq(0).offset().top,
            height:$floor.eq(0).height(),
            items:[
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ],
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ],
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ]
            ]
        },
        {
            num:"2",
            text:"個護美妝",
            tabs:["熱門","國際大牌","國際名品"],
            offsetTop:$floor.eq(1).offset().top,
            height:$floor.eq(1).height(),
            items:[
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ],
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ],
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ]
            ]
        },
        {
            num:"3",
            text:"手機通訊",
            tabs:["熱門","品質優選","新機嘗鮮"],
            offsetTop:$floor.eq(2).offset().top,
            height:$floor.eq(2).height(),
            items:[
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ],
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ],
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ]
            ]
        },
        {
            num:"4",
            text:"家用電器",
            tabs:["熱門","大家電","生活電器"],
            offsetTop:$floor.eq(3).offset().top,
            height:$floor.eq(3).height(),
            items:[
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ],
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ],
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ]
            ]
        },
        {
            num:"5",
            text:"電腦數位",
            tabs:["熱門","電腦/平板","潮流影音"],
            offsetTop:$floor.eq(4).offset().top,
            height:$floor.eq(4).height(),
            items:[
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    }
                ],
                [
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"
                    },
                    {
                        name:"匡威男棒球開衫外套2020",
                        price:"¥479"	   

您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 不知道為什麼,UI 很喜歡設計蜂巢效果(攤手) 一、實現六邊形 首先用傳統的方式來分析一下六邊形 可以拆分成三個矩形,每個矩形旋轉正負 60° 得到其它兩個矩形 由此可以設計出基本的 HTML 結構 矩形的寬高先隨便設置,後面組件化的時候再計算其關係,通過 props 設置 然後設置 CSS 樣式 ...
  • 什麼是選擇器?選擇器{樣式;},在{}之前的部分就是“選擇器”,“選擇器”指明瞭{}中的“樣式”的作用對象,也就是“樣式”作用於網頁中的哪些元素,類似這樣body{color: pink;font-size: 16px;};常見的選擇器包含:標簽選擇器、類選擇器、ID選擇器、子選擇器、包含(後代)選... ...
  • live2d-widget-model-gf live2d-widget-model-haru/01 live2d-widget-model-haru/02 live2d-widget-model-haruto live2d-widget-model-hibiki live2d-widget-m... ...
  • 效果圖 toolbar.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>toolbar</title> <link rel="stylesheet" href="../css/base.css"> ...
  • Javascript中有三種常見的輸出方式: 1,通過彈窗的形式來輸出,其中又分為三種,它們之間存在著一些細微的區別; 1.1,alert(需要輸出的內容); 例如:alert("Hello World"); 1.2,confirm("需要輸出的內容"); 例如:confirm("Hello CTl ...
  • 由於要改版前幾天做的HTML編輯器,編輯器頁面重新設計了一下,整個界面全部用flex box實現: 可能有的朋友會有類似需求,就把純靜態html和CSS發佈到github上了,在這個項目下麵: https://github.com/vularsoft/studio-ui 裡面的html-demo.h ...
  • 在HTML中,要實現區域內容的滾動,只需要設定好元素的寬度和高度,然後設置CSS屬性overflow 為auto或者scroll: 在Flex box佈局中,有時我們內容的寬度和高度是可變的,無法確定下來,這時候設置滾動條,可能會失效。只要記住幾個關鍵要素,就可以解決這個問題。 1、清楚的知道當前元 ...
  • 疫情禁足在家,用原生的JS實現了一個HTML可視化編輯工具,頁面佈局基於Bootstrap。大約一個月時間,打通主要技術關卡,實現了第一版: 可以拖放編輯,實現了幾乎所有的bootstrap預定義工具類。 設計時,儘量讓其可以靈活擴展,支持多主題切換,為自定義控制項預留了介面。 還可以作為bootst ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...