jquery-autocomplete 组件使用
来源:互联网 发布:91pron 永久域名 编辑:程序博客网 时间:2024/05/22 15:21
需要的js、css大概有这些
调用过程:
$(function() {
var obj = $("#addInvolvesSystem");
var url = GV.ctxPath + 'auto/autoInvolvesSystem';
var param = {
'addInvolvesSystem' : $("#addInvolvesSystem").val()
};
var jsonFun = {
formatItem : formatItemFun,
result : resultFun
};
var jsonParam = {
minChars : 1,
max : 10
};
autocompleteFun(obj, url, param, jsonFun,jsonParam );
});
function formatItemFun(row, i, max) {
return row.name;
}
function resultFun(data) {
$("#addInvolvesSystem").val(data.name);
$("#involvesSystem").val(data.name);
}
$(function() {
var obj = $("#involvesSystem");
var url = GV.ctxPath + 'auto/autoInvolvesSystem';
var param = {
'involvesSystem' : $("#involvesSystem").val()
};
var jsonFun = {
formatItem : formatItemFun,
result : resultFun
};
var jsonParam = {
minChars : 1,
max : 10
};
autocompleteFun(obj, url, param, jsonFun,jsonParam );
});
'auto/autoInvolvesSystem'是去后台查询,在controller可以使用缓存机制。
- jQuery autocomplete 组件使用
- jquery-autocomplete 组件使用
- jquery autocomplete 使用
- JQuery Autocomplete 使用总结
- jquery autoComplete 使用技巧
- 使用 jQuery UI AutoComplete
- jquery.autocomplete的使用
- jquery.autocomplete 使用
- jquery autocomplete 使用心得
- Jquery autocomplete插件使用
- div使用jQuery autocomplete
- jquery autocomplete插件的使用
- jquery.autocomplete 插件使用心得
- jQuery Autocomplete 使用详细说明
- Jquery插件的使用--AutoComplete
- jquery.autocomplete使用小感悟
- JQuery Autocomplete使用Ajax例子
- JQuery 的Autocomplete插件使用
- MarkDown的基本用法
- ubuntu 12.04完整备份
- IP地址属地查询测试用例,涵盖31个省会和3个运营商
- 121.[Leetcode]Best Time to Buy and Sell Stock
- 编译型语言、解释型语言、静态类型语言、动态类型语言
- jquery-autocomplete 组件使用
- 使用POI3读取Excel2007格式
- 欢迎使用CSDN-markdown编辑器
- SDWebimage 相同url缓存图片对比问题
- 运行项目时报 Unsupported major.minor version 52.0 解决
- C++写入txt文件方法
- 柴俊理金:5、5晚间宁贵沥青,黄金操作建议及分析
- js 处理表格
- 二叉树简单汇总