Facebook Style AJAX Search

后端 未结 3 1276
清酒与你
清酒与你 2020-12-13 16:51

I\'ve created a Facebook style ajax search for my site where as you type it will bring up the results in a nice list below your search.

$(\"#s\").keyup(funct         


        
3条回答
  •  独厮守ぢ
    2020-12-13 17:06

    Another option would be to start searching after 2/3 characters. Waiting for 1 second before making every request doesn't look good to me. Also try to send very less data back to server which might also make the request and response faster.

提交回复
热议问题