<input type="text" id="searchAll" value="" onkeydown="keyDown(event)" placeholder="搜索节目" onfocus="if (this.value == '搜索节目' || this.value == '搜索节目') { this.value = ''; this.style.color = 'black';}; " onblur="if (this.value == '' || this.value == '搜索节目') { this.value = '搜索节目'; this.style.color = '#ccc'; }" style="color: rgb(204, 204, 204);">
<script>
function keyDown(e) {
var ev = window.event||e;
//13是键盘上面固定的回车键
if (ev.keyCode == 13) {
document.writeln('回车键按下');
//searchDetail(); 查询事件
}
}
</script>
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询