码迷,mamicode.com
首页 > 数据库 > 详细

从数据库、页面加载速度角度思考 id设计 sku asin

时间:2017-05-09 23:14:44      阅读:499      评论:0      收藏:0      [点我收藏+]

标签:image   available   swa   not   ogr   radio   tps   内存   https   

 

 

技术分享

 

w

超值套装

【小米红米4A】【超值套装】小米 红米 4A 全网通 2GB内存 16GB ROM 香槟金色 移动联通电信4G手机 双卡双待【行情 报价 价格 评测】-京东  https://item.jd.com/4891234.html#crumb-wrap

【小米红米4A】【超值套装】小米 红米 4A 全网通 2GB内存 16GB ROM 玫瑰金色 移动联通电信4G手机 双卡双待【行情 报价 价格 评测】-京东  https://item.jd.com/4096723.html#crumb-wrap

 

裸机

【小米红米4A】小米 红米 4A 全网通 2GB内存 16GB ROM 香槟金色 移动联通电信4G手机 双卡双待【行情 报价 价格 评测】-京东  https://item.jd.com/3553539.html#none

【小米红米4A】小米 红米 4A 全网通 2GB内存 16GB ROM 玫瑰金色 移动联通电信4G手机 双卡双待【行情 报价 价格 评测】-京东  https://item.jd.com/3553567.html#none

 

技术分享

<div id="choose-attrs">
    <div id="choose-attr-1" class="li p-choose" data-type="颜色" data-idx="0">
        <div class="dt">选择颜色</div>
        <div class="dd">
            <div class="item  selected" data-sku="4891208" data-value="香槟金色" title="香槟金色">
                <b></b>
                <a href="#none" clstag="shangpin|keycount|product|yanse-香槟金色">
                    <img data-img="1"
                         src="//img13.360buyimg.com/n9/s40x40_jfs/t4177/323/133450331/58871/8754fee4/58afc7b7Nd5208ecc.jpg"
                         width="40" height="40" alt="香槟金色"><i>香槟金色</i>
                </a>
            </div>
            <div class="item" data-sku="3553567" data-value="玫瑰金色" title="玫瑰金色">
                <b></b>
                <a href="#none" clstag="shangpin|keycount|product|yanse-玫瑰金色">
                    <img data-img="1"
                         src="//img12.360buyimg.com/n9/s40x40_jfs/t4054/149/1941665922/312732/fc88cafe/589d7db2Nf287d6e1.jpg"
                         width="40" height="40" alt="玫瑰金色"><i>玫瑰金色</i>
                </a>
            </div>
            <div class="item" data-sku="4100779" data-value="深空灰" title="深空灰">
                <b></b>
                <a href="#none" clstag="shangpin|keycount|product|yanse-深空灰">
                    <img data-img="1"
                         src="//img14.360buyimg.com/n9/s40x40_jfs/t4774/236/941916437/35263/e13c1cbe/58eb321eN76d64973.jpg"
                         width="40" height="40" alt="深空灰"><i>深空灰</i>
                </a>
            </div>
        </div>
    </div>
    <div id="choose-attr-2" class="li p-choose" data-type="版本" data-idx="1">
        <div class="dt">选择版本</div>
        <div class="dd">
            <div class="item  selected" data-sku="4100779" data-value="全网通" title="全网通">
                <b></b>
                <a href="#none" clstag="shangpin|keycount|product|yanse-全网通">
                    全网通 </a>
            </div>
            <div class="item" data-sku="4891208" data-value="移动全网通" title="移动全网通">
                <b></b>
                <a href="#none" clstag="shangpin|keycount|product|yanse-移动全网通">
                    移动全网通 </a>
            </div>
        </div>
    </div>
    <div id="choose-attr-3" class="li p-choose" data-type="购买方式" data-idx="2">
        <div class="dt">购买方式</div>
        <div class="dd">
            <div class="item" data-sku="3553567" data-value="裸机" title="裸机">
                <b></b>
                <a href="#none" clstag="shangpin|keycount|product|yanse-裸机">
                    裸机 </a>
            </div>
            <div class="item  selected" data-sku="4891208" data-value="超值套装" title="超值套装">
                <b></b>
                <a href="#none" clstag="shangpin|keycount|product|yanse-超值套装">
                    超值套装 </a>
            </div>
            <div class="item" data-sku="4100779" data-value="套装" title="套装">
                <b></b>
                <a href="#none" clstag="shangpin|keycount|product|yanse-套装">
                    套装 </a>
            </div>
        </div>
    </div>
    <div id="choose-results" class="li" style="display:none">
        <div class="dt">已选择</div>
        <div class="dd"></div>
    </div>
</div>

 

 

技术分享

<ul class="a-unordered-list a-nostyle a-button-list a-declarative a-button-toggle-group a-horizontal a-spacing-top-micro swatches swatchesSquare imageSwatches"
    role="radiogroup" data-action="a-button-group"
    data-a-button-group="{&quot;name&quot;:&quot;twister_color_name&quot;}">


    <!-- Please note that in className never append a class with prefix as ‘swatch‘. It would break something in the twister JS -->
    <li id="color_name_0" title="选择 极光蓝" data-defaultasin="B06XFKG2K5" data-dp-url="" class="swatchAvailable"><span
            class="a-list-item"> 
            <div class="tooltip">
              
            
            
            <span class="a-declarative" data-action="swatchthumb-action"
                  data-swatchthumb-action="{&quot;dimIndex&quot;:1,&quot;dimValueIndex&quot;:0}"> 
            <span class="a-button a-button-thumbnail a-button-toggle" id="a-autoid-15" aria-checked="false"><span
                    class="a-button-inner"><button class="a-button-text" type="button" id="a-autoid-15-announce">


                <span class="xoverlay"></span>


                <div class="">
                    <div class="">
                        <img src="https://images-cn.ssl-images-amazon.com/images/I/51fpWsWFMIL._SS36_.jpg" alt="极光蓝"
                             style="height:36px; width:36px" class="imgSwatch">
                    </div>
                    <div class="" style=" ">


                    </div>
                </div>


            </button></span></span>
            </span>
            </div>
          
            
            
              
              
                
              
            
          </span></li>


    <!-- Please note that in className never append a class with prefix as ‘swatch‘. It would break something in the twister JS -->
    <li id="color_name_1" title="选择 幻夜黑" data-defaultasin="B06XX6LPDP"
        data-dp-url="/dp/B06XX6LPDP/ref=twister_B06ZZGGNS4?_encoding=UTF8&amp;psc=1" class="swatchAvailable"><span
            class="a-list-item"> 
            <div class="tooltip">
              
            
            
            <span class="a-declarative" data-action="swatchthumb-action"
                  data-swatchthumb-action="{&quot;dimIndex&quot;:1,&quot;dimValueIndex&quot;:1}"> 
            <span class="a-button a-button-null a-button-thumbnail a-button-toggle" id="a-autoid-16"
                  aria-checked="false"><span class="a-button-inner"><button class="a-button-text" type="button"
                                                                            id="a-autoid-16-announce">


                <span class="xoverlay"></span>


                <div class="">
                    <div class="">
                        <img src="https://images-cn.ssl-images-amazon.com/images/I/51dI3L%2B%2BR7L._SS36_.jpg" alt="幻夜黑"
                             style="height:36px; width:36px" class="imgSwatch">
                    </div>
                    <div class="" style=" ">


                    </div>
                </div>


            </button></span></span>
            </span>
            </div>
          
            
              
            
            
              
                
              
              
            
          </span></li>


    <!-- Please note that in className never append a class with prefix as ‘swatch‘. It would break something in the twister JS -->
    <li id="color_name_2" title="选择 铂光金" data-defaultasin="B06XFXMQ9N"
        data-dp-url="/dp/B06XFXMQ9N/ref=twister_B06ZZGGNS4?_encoding=UTF8&amp;psc=1" class="swatchSelect"><span
            class="a-list-item"> 
            <div class="tooltip">
              
            
            
            <span class="a-declarative" data-action="swatchthumb-action"
                  data-swatchthumb-action="{&quot;dimIndex&quot;:1,&quot;dimValueIndex&quot;:2}"> 
            <span class="a-button a-button-null a-button-thumbnail a-button-toggle a-button-selected" id="a-autoid-17"
                  aria-checked="true"><span class="a-button-inner"><button class="a-button-text" type="button"
                                                                           id="a-autoid-17-announce">


                <span class="xoverlay"></span>


                <div class="">
                    <div class="">
                        <img src="https://images-cn.ssl-images-amazon.com/images/I/41vVhSErDAL._SS36_.jpg" alt="铂光金"
                             style="height:36px; width:36px" class="imgSwatch">
                    </div>
                    <div class="" style=" ">


                    </div>
                </div>


            </button></span></span>
            </span>
            </div>
          
            
              
            
            
              
                
              
              
            
          </span></li>


    <!-- Please note that in className never append a class with prefix as ‘swatch‘. It would break something in the twister JS -->
    <li id="color_name_3" title="选择 魅焰红" data-defaultasin="B06XXCHXPZ"
        data-dp-url="/dp/B06XXCHXPZ/ref=twister_B06ZZGGNS4?_encoding=UTF8&amp;psc=1" class="swatchAvailable"><span
            class="a-list-item"> 
            <div class="tooltip">
              
            
            
            <span class="a-declarative" data-action="swatchthumb-action"
                  data-swatchthumb-action="{&quot;dimIndex&quot;:1,&quot;dimValueIndex&quot;:3}"> 
            <span class="a-button a-button-null a-button-thumbnail a-button-toggle" id="a-autoid-18"
                  aria-checked="false"><span class="a-button-inner"><button class="a-button-text" type="button"
                                                                            id="a-autoid-18-announce">


                <span class="xoverlay"></span>


                <div class="">
                    <div class="">
                        <img src="https://images-cn.ssl-images-amazon.com/images/I/51u%2BKKlfykL._SS36_.jpg" alt="魅焰红"
                             style="height:36px; width:36px" class="imgSwatch">
                    </div>
                    <div class="" style=" ">


                    </div>
                </div>


            </button></span></span>
            </span>
            </div>
          
            
              
            
            
              
                
              
              
            
          </span></li>


</ul>

 

从数据库、页面加载速度角度思考 id设计 sku asin

标签:image   available   swa   not   ogr   radio   tps   内存   https   

原文地址:http://www.cnblogs.com/yuanjiangw/p/6833031.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!