Scripts/OtherJs/trirand/jquery.jqAutoComplete.min.js
(开头部分) 31KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
; (function($, window, document, undefined) {
"use strict";
var pluginName = 'jqAutoComplete',
defaults = {
id: "",
dataUrl: "",
delay: 300,
minLength: 1,
width: 100,
height: 100,
dropDownWidth: null,
enabled: true,
items: [],
tabIndex: 0,
loadingImageUrl: "",
initialText: "",
itemTemplateID: "",
headerTemplateID: "",
footerTemplateID: "",
filter: "none",
onShow: null,
onHide: null,
onSelect: null,
onMouseOver: null,
onMouseOut: null,
onInitialized: null,
onKeyDown: null
};
function AutoComplete(element, options) {
this.self = $(element);
this.options = $.extend({}, defaults, options);
if (this.options.dropDownWidth === null) {
this.options.dropDownWidth = this.options.width;
}
this.toggleActive = false;
this.autoCompleteVisible = false;
this.selectedIndex = -1;
this.keyboardIndex = -1;
this.cancelChange = false;
this.ajaxObject = null;
this.controlEditor = (this.self[0].tagName == "INPUT") ? true : false;
$(element).prop("autocomplete", this);
this.getInitialText();
this.renderToLevelSpan();
//if (this.options.items.length > 0) {
// this.renderItems(this.options.items);
//}
this.renderHiddenValueField();
this.attachEvents();
if (this.selectedIndex > -1) {
this.keyboardIndex = this.selectedIndex;
var item = this.getItemByIndex(this.selectedIndex);
后面还有 807 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
