Authored by zhangxiaoru

indexSearch

... ... @@ -70,7 +70,7 @@ router.get('/search/list', search.list);
// filter
router.get('/search/filter', search.filter);
//fuzzyDatas
// fuzzyDatas
router.get('/search/fuzzyDatas', search.fuzzyDatas);
// ajax 请求商品数据
... ...
... ... @@ -96,10 +96,9 @@ function inputAction() {
success: function(data) {
var ajaxHtml = '';
var i;
console.log(data)
if (data.length > 0) {
console.log(data.length)
console.log(data.length);
for (i = 0; i < data.length; i++) {
ajaxHtml += '<li><span class="keyword">' + data[i].keyword + '</span><span class="count">' +
data[i].count + ' items<i class="iconfont">&#xe614;</i></span></li>';
... ...