+
+ {foreach $tool as $class}
+
+
+
+ {/foreach}
+
+
+
+
+ {$class.title}
+
+
+ {foreach $class.items as $item}
+
+
+ {$item.title}
+
+ {/foreach}
+
@@ -84,7 +102,6 @@ function show_category_btn(catid){
function show_tool_list(catid){
searchkw = '';$("#searchkw").val('');
show_category_btn(catid);
- tools = [];
var html = '';
$.each(tool_list, function(index, value){
if(catid!=0 && value.id!=catid) return;
@@ -95,9 +112,8 @@ function show_tool_list(catid){
${value.title}
- `;
+
`;
$.each(value.items, function(index, value){
- tools.push(value);
html += `
${value.title}
@@ -123,7 +139,7 @@ function show_search_list(){
搜索结果
- `;
+
`;
if(list.length>0){
$.each(list, function(index, value){
html += `
@@ -170,7 +186,12 @@ function bind_statistics(){
});
}
$(document).ready(function(){
- show_tool_list(0);
+ //show_tool_list(0);
+ $.each(tool_list, function(index, value){
+ $.each(value.items, function(index, value){
+ tools.push(value);
+ });
+ });
$("#searchkw").on('input', function(){
watch_searchkw($(this).val().trim().toLowerCase())
});