zoukankan      html  css  js  c++  java
  • 我写的一些JS代码。。。。

            //分类不显示
            //        function Xuanzhong(name, con) {

            //            for (var i = 0; i < con; i++) {
            //                // $("#" + name + i).hide();
            //                var trs = $("tr");
            //                if ("tr_" + name == "tr_1") //等于tr_1
            //                {
            //                    for (var j = 0; j < trs.length; j++) {
            //                        if (trs[j].id != "tr_1" && trs[j].id != "") {
            //                            trs[j].style.display = "none";
            //                            $('#xianshi' + name).hide();
            //                            $('#buxianshi' + name).show();
            //                        }
            //                    }
            //                }
            //                else//不等于tr_1
            //                {
            //                    for (var j = 0; j < trs.length; j++) {
            //                        if (trs[j].id != name + i && trs[j].id != "" && trs[j].id != "tr_1") {
            //                            var num = name.toString() + i.toString();
            //                            $('#xianshi' + name).hide();
            //                            $('#buxianshi' + name).show();
            //                            if (parseInt(num) <=parseInt(trs[j].id)) {
            //                                $("#" + trs[j].id).hide();
            //                                //$('#'+num).hide();
            //                                
            ////                                $('#xianshi' + name).show();
            ////                                $('#buxianshi' + name).hide();

            //                            }
            //                        }
            //                    }
            //                }

            //            }
            //        }
            //        //分类显示
            //        function BuXuanzhong(name, con) {

            //            for (var i = 0; i < con; i++) {
            //                $("#" + name + i).show();
            //                $('#xianshi' + name).show();
            //                $('#buxianshi' + name).hide();
            //            }
            //        }

  • 相关阅读:
    node之body-parser的使用
    node解决跨域问题
    node之post提交上传
    HDU 6397(容斥原理)
    HDU 3374(最小最大表示法+KMP)
    HDU 6396(优先队列+思维)
    HDU 6395(矩阵快速幂)
    HDU 6370(并查集)
    HDU 6356(线段树)
    HDU 6354(计算几何)
  • 原文地址:https://www.cnblogs.com/weiying/p/weiying_08_23.html
Copyright © 2011-2022 走看看