2019年7月25日

获取间的内容

摘要: <input type="button" value=" 按钮" id="btn"/> <p>aaaacc</p> document.getElementById("btn").onclick=function(){ console.log(document.getElementsByTagName 阅读全文

posted @ 2019-07-25 14:50 大橙!! 阅读(87) 评论(0) 推荐(0) 编辑

密码长度为6-10的判断

摘要: <input type="text" value="" id="mm"/> document.getElementById("mm").onblur=function(){ if(mm.value.length>=6&&mm.value.length<=10){ this.style.backgro 阅读全文

posted @ 2019-07-25 11:29 大橙!! 阅读(253) 评论(0) 推荐(0) 编辑

模拟输入框

摘要: #txt{ color: gray; } #txt{ color: gray; } #txt{ color: gray; } <input type="text" value="请输入内容" id="txt"/> document.getElementById("txt").onfocus=func 阅读全文

posted @ 2019-07-25 10:09 大橙!! 阅读(100) 评论(0) 推荐(0) 编辑

导航