js搜索输入关键词

function getInput(val,a){
var id = 'ser-key';
if(a=='focus'){
document.getElementById(id).value='';
}
if(a=='blur'){
if(val==''){
document.getElementById(id).value= "请输入VIP卡号或手机号码查询";
}else{
document.getElementById(id).value= val;
} }
}
 <input name="keyword" type="text" class="inp_a" id="ser-key" onfocus="getInput(this.value,'focus')" onblur="getInput(this.value,'blur')" value="请输入VIP卡号或手机号码查询" size="" />
上一篇:mysql建表语句key的含义


下一篇:Hive:org.apache.hadoop.hdfs.protocol.NSQuotaExceededException: The NameSpace quota (directories and files) of directory /mydir is exceeded: quota=100000 file count=100001