laoliang
V2EX  ›  问与答

今天维护公司以前外包出去的项目的代码,我该怎么做?

By laoliang at 2017 年 9 月 18 日 · 2554 次点击

先看一波: $("#"+tableId+":eq(0)>tbody:eq(0)>tr:eq("+i+")>td:eq(1)>div:eq(0)>div").click(function(){

        if(($(this).attr("id")==10) && ($(this).parent().parent().next().next().text()=="送机")){
             $(this).parent().parent().next().next().next().children("input").attr("disabled",false);
             $(this).parent().parent().next().next().next().children("input").val("");
        }else{
            $(this).parent().parent().next().next().next().children("input").attr("disabled",true);
            $(this).parent().parent().next().next().next().children("input").val("待分配");
        }
        $(this).siblings().children("span:eq(0)").removeClass("one");
        $(this).children("span:eq(0)").addClass("one");   
        $(this).parent().parent().prev().children("input:eq(1)").val($(this).children("span").children("span:eq(0)").text());  
        $(this).parent().parent().prev().children("input:eq(1)").attr('placeholder',this.id);    

        if(!($(this).children("span").text()=="未开通服务")){
            $(this).parent().parent().prev().children("input:eq(0)").attr("disabled",false);
        }
        else{
            alert("未开通服务");
            $(this).parent().parent().prev().children("input:eq(0)").attr("disabled",true);
        }  
    });
1 条回复  •  2018-06-26 12:17:08 +08:00
destinyclown
   1
destinyclown  
   2018 年 6 月 26 日
去问上司,是不是一定要我维护,是的话就辞职- -!
© 2026 V2EX · 51ms · 3.9.8.5