搜索提示,以及首页展示
This commit is contained in:
parent
4443749325
commit
24a0becafe
|
|
@ -17,6 +17,8 @@
|
|||
this.query = ''; //
|
||||
this.page_size = 10; //每页显示10条
|
||||
|
||||
this.elm_info.innerHTML = this.commands.length;
|
||||
|
||||
this.init()
|
||||
this.goToIndex()
|
||||
}
|
||||
|
|
@ -99,7 +101,7 @@
|
|||
}
|
||||
}
|
||||
if(relese ===0){
|
||||
myLi.innerHTML = '<span>没有任何内容,请尝试输入其它字符!</span>';
|
||||
myLi.innerHTML = this.query?'<span>没有搜索到任何内容,请尝试输入其它字符!</span>':'<span>请尝试输入一些字符,进行搜素!</span>';
|
||||
self.elm_result.innerHTML = myLi.outerHTML;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
共搜集到 <span id="commands_info">-</span> 个Linux命令 <a href="#">添加命令</a>
|
||||
收藏本站请使用Ctrl+D或者Command+d<br>
|
||||
共搜集到 <span id="commands_info"></span> 个Linux命令 <a href="#">添加命令</a>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue