一款简单的input输入框删除文字效果js代码,仿百度点击删除搜索框输入文字代码。js代码[removed]document.getElementById("search").addEventListener("keyup",function(){if(this.value.length>0){document.getElementById("cls").style.visibility="visible";document.getElementById("cls").onclick=function(){docum