代码购物车外卖免费素材下载 jQuery手机外卖点餐购物车结算代码

资源魔 83 0

jQuery手机外卖点餐购物车结算代码是一款十分没有错的jQuery手机挪动端外卖点餐购物车结算代码,能够抉择分类、数目加减、主动较量争论金额等。

js代码:

<script type="text/javascript" src="script/api.js" ></script>
<script src="script/jquery.min.js"></script>
<script type="text/javascript" src="script/add.js"></script>
<script type="text/javascript" src="script/aui-tab.js" ></script>
<script type="text/javascript">
    apiready = function() {
        api.parseTapmode();
    }
    var tab = new auiTab({
        element: document.getElementById("tab"),

    }, function(ret) {
        if (ret) {
            //界说猎取工具的一切兄弟节点的函数,
            function siblings(elm) {
                var a = [];
                var p = elm.parentNode.children;
                for (var i = 0, pl = p.length; i < pl; i++) {
                    if (p[i] !== elm) a.push(p[i]);
                }
                return a;
            }
            var index = ret.index;
            var activeC = document.getElementById("tab1-con" + index);
            activeC.className = "";
            for (var i = 0; i < siblings(activeC).length; i++) {
                siblings(activeC)[i].className = "aui-hide";
            }
        }
    });
</script>

标签: jQuery vue复制功能 手机外卖

抱歉,评论功能暂时关闭!