smartComplete
smartComplete是基于jQuery1.7 +的轻量级插件。 它允许您从SERVER获取数据,然后生成要智能选择的数据列表。 smartComplete内部具有DATA-CATCH机制,可帮助有效减少冗余请求。
用法
将jQuery和smartComplete.js导入您的页面文件,然后使用$("input").smartComplete([OPTION])设置插件。 例如
$ ( "#a" ) . smartComplete ( {
url : "result.json" , //url of SERVER
ulClass : "abc"
} ) ;
$ ( "div>input" ) . smartComplete ( {
url : "result.json" ,
matc