소스 검색

增加搜索时间显示

visuddhinanda 4 년 전
부모
커밋
bd9f260b35
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      app/search/paliword.js

+ 2 - 0
app/search/paliword.js

@@ -24,6 +24,8 @@ function paliword_search(keyword, words = new Array(), book = new Array()) {
 			let result = JSON.parse(data);
 			console.log(result.time);
 			let html = "";
+			let iTotleTime = result.time[result.time.length-1].time;
+			html += "<div>查询到 "+result.data.length+" 条结果 "+iTotleTime+"秒</div>";
 			for (const iterator of result.data) {
 				html += render_word_result(iterator);
 			}