87,910
社区成员
发帖
与我相关
我的任务
分享
<script>
function ss(obj){
var div = document.getElementById("dd")
div.innerHTML = obj.value.length }
</script>
<center>
<h1>书籍搜索</h1>
<input type="text" style=" width:400px" onkeyup="ss(this)" onKeyDown="ss(this)"/><input value="搜索" type="button" style="margin-left:15px"/>
<div id="dd"></div>
</center>
<script>
function ss(obj){
var div = document.getElementById("dd")
div.innerHTML = obj.value.length }
</script>
<center>
<h1>书籍搜索</h1>
<input type="text" style=" width:400px" onpropertychange="ss(this)" /><input value="搜索" type="button" style="margin-left:15px"/>
<div id="dd"></div>
</center>