Skip to content

Commit 4362d7b

Browse files
committed
修改错误文字
1 parent 2637e02 commit 4362d7b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎template/js/index.js‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
}
112112
if(arrResultHTML.length === 0){
113113
var myLi = document.createElement("LI");
114-
myLi.innerHTML = '<span>'+this.query?'请尝试输入一些字符,进行搜素!'+'</span>':'没有搜索到任何内容,请尝试输入其它字符!';
114+
myLi.innerHTML = '<span>'+this.query?'请尝试输入一些字符,进行搜索!'+'</span>':'没有搜索到任何内容,请尝试输入其它字符!';
115115
elm.appendChild(myLi);
116116
}
117117
},
@@ -120,7 +120,7 @@
120120
var kw = self.getQueryString('kw');
121121
var timer = null
122122
this.elm_query.value = kw;
123-
this.query = kw;
123+
this.query = kw||'';
124124
if(this.elm_search_result) self.searchResult(true);
125125
this.bindEvent(this.elm_query,'input',function(e){
126126
self.query = e.target.value;
@@ -129,10 +129,8 @@
129129
self.elm_result.style.display = self.query?'block':'none';
130130
})
131131
this.bindEvent(this.elm_btn,'click',function(e){
132-
console.log("---->")
133-
if(self.elm_search_result){
134-
self.searchResult(true);
135-
}
132+
self.elm_result.style.display = 'none';
133+
if(self.elm_search_result) self.searchResult(true);
136134
else{
137135
window.location.href = self.root_path + '/list.html#!kw='+self.query;
138136
}

0 commit comments

Comments
 (0)