laoliang
V2EX  ›  问与答

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

  •  
  •   laoliang · Sep 18, 2017 · 2270 views
    This topic created in 3183 days ago, the information mentioned may be changed or developed.

    先看一波: $("#"+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 replies    2018-06-26 12:17:08 +08:00
    destinyclown
        1
    destinyclown  
       Jun 26, 2018
    去问上司,是不是一定要我维护,是的话就辞职- -!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   853 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:53 · PVG 04:53 · LAX 13:53 · JFK 16:53
    ♥ Do have faith in what you're doing.