📜  隐藏一个空按钮 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:54.001000             🧑  作者: Mango

代码示例1
code_textarea.addEventListener('keyup', function(){
 if(code_textarea.value){
  upload_btn.classList.remove("hidden");
 }
 else {
  upload_btn.classList.add("hidden");
 }
});