原标题:JavaScript 简史:从网景到框架 | 技术头条
以下为译文:
loginbutton = .getElementById( ); loginMenu = .getElementById( ); loginbutton.addEventListener( , () => { (loginMenu.style.display === ){ loginMenu.style.display = ; } { loginMenu.style.display = ; } }); $(“#loginbutton”).click( =>{$(“#login”).toggle()});
|