Efficient AutoSuggest with jQuery?

前端 未结 4 1619
北荒
北荒 2021-02-01 11:15

I\'m working to build a jQuery AutoSuggest plugin, inspired by Apple\'s spotlight.

Here is the general code:

$(document).ready(function() { 
$(\'#q\').         


        
4条回答
  •  无人及你
    2021-02-01 11:52

    I don't know, what DB are you using OR are you using hardcoded file!?

    anyway a good starting point is wait for a least a TOT NUMS of chars for

    es.: after 3 ( that is a min word lenght for search mysql in most cases ) chars then you can start to search your DB or json file!

    I think you must give to PHP or others the hard job like FILTERING etc, etc.. before send back the responce!

    btw i think one of the best AutoSuggest is the one from brandspankingnew

提交回复
热议问题