js侧边框简单的实现 js代码 <script> var ce2 = document.getElementById('ce2'); // 获取id var ce1 = document.getElementById('ce1'); // 获取id ce1.addEventListener('click',function(){ // 捕捉 点击运行 if(ce2.style.right == "0px"