⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 multicombobox.js

📁 这是一个ajax的例子大家好好的看看就是一个鱼眼的效果
💻 JS
字号:
if(!dojo._hasResource["dojox.widget.MultiComboBox"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.dojo._hasResource["dojox.widget.MultiComboBox"] = true;dojo.provide("dojox.widget.MultiComboBox");dojo.experimental("dojox.widget.MultiComboBox"); dojo.require("dijit.form.ComboBox");dojo.require("dijit.form.ValidationTextBox");dojo.declare("dojox.widget.MultiComboBox",	[dijit.form.ValidationTextBox, dijit.form.ComboBoxMixin],{	//	// summary: A ComboBox that accpets multiple inputs on a single line?	//	// delimiter: String	// 	The character to use to separate items in the ComboBox input	delimiter: ",",	_previousMatches: false,	setValue: function(value){		if (this.delimiter && value.length != 0){			value = value+this.delimiter+" ";			arguments[0] = this._addPreviousMatches(value);		}		this.inherited(arguments);	},	_addPreviousMatches: function(/* String */text){		if(this._previousMatches){			if(!text.match(new RegExp("^"+this._previousMatches))){				text = this._previousMatches+text;			}			text = this._cleanupDelimiters(text);		}		return text; // String	},	_cleanupDelimiters: function(/* String */text){		if(this.delimiter){			text = text.replace(new RegExp("  +"), " ");			text = text.replace(new RegExp("^ *"+this.delimiter+"* *"), "");			text = text.replace(new RegExp(this.delimiter+" *"+this.delimiter), this.delimiter);		}		return text;	},				_autoCompleteText: function(/* String */text){		arguments[0] = this._addPreviousMatches(text);		this.inherited(arguments);	},	_startSearch: function(/* String */text){		text = this._cleanupDelimiters(text);		var re = new RegExp("^.*"+this.delimiter+" *");				if(this._previousMatches = text.match(re)){			arguments[0] = text.replace(re, "");		}		this.inherited(arguments);	}		});}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -