软工超越日报-多条件查询 5/7

热词云作业有一个重要环节就是多条件查询

效果是这样:

 核心代码(搜索条件的消失与出现)如下:

    function cs(){
        if(oramgeal<6){
            da=document.getElementById("d"+oramgeal);
            da.setAttribute("style","margin-top:20px;650px;margin:0 auto");
            console.log(oramgeal);
            oramgeal++;
        }
        
    }
  

  function sc(){
      if(oramgeal>1){
      oramgeal--;
      da=document.getElementById("d"+oramgeal);
      da.setAttribute("style","display:none");
      document.getElementById("title"+oramgeal).value="";
      console.log(oramgeal);

    }
  }

原文地址:https://www.cnblogs.com/Sakuraba/p/14910512.html