zoukankan      html  css  js  c++  java
  • 内容互换&同意下一步

    a=document.getElementById("a");
    b=document.getElementById("b");
    c=document.getElementById("c");
    d=document.getElementById("d");

    b.onclick=function(){
    a.appendChild(d.selectedOptions[0])
    d.removeChild(d.selectedOptions[0])
    }

    c.onclick=function(){
    d.appendChild(a.selectedOptions[0])
    a.removeChild(d.selectedOptions[0])
    }

    a=document.getElementById("a");
    b=document.getElementById("b");
    c=document.getElementById("c");

    a.onclick=function(){

    if(a.checked){
    c.removeAttribute("disabled");
    }else{
    c.setAttribute("disabled","disabled");
    }

    }

  • 相关阅读:
    锁详解
    消息组件
    分布式锁
    jvm调优
    类加载
    垃圾回收
    Mysql
    redis
    悲观锁和乐光锁
    算法常见
  • 原文地址:https://www.cnblogs.com/m110/p/7599374.html
Copyright © 2011-2022 走看看