function abc(str){
if(str != null || str != ""){
alert(str);
}
}
<input type="text" id="keyWord" class="top_text" name="keyWord" onkeyup="abc(this.value)" >就上面的一段小代码,我是想在输入框里面为空的时候,在javascript函数里面作相应的处理,可是上面代码运行后,当把焦点放到文本框里面,切换到中文输入法,一输入就弹出个空值,不知道是什么原因,怎么才能在javascript函数里面处理为空的情况?