the next articlenew Python environment variable configuration file:under the host user directoryvim. Pystartup# ADD Auto-completion and a stored history file of commands to your Python# Interactive interpreter. Requires Python 2.0+, ReadLine. Autocomplete is# bound to the ESC key by default (you can change It–see readl
indent set Autoindentsetcindent "Settingstab width is 4 spaces settabstop=4setexpandtab "Unified indent to 4setsofttabstop=4setshiftwidth=4" matches parentheses highlight set showmatch "Match bracket Highlight time (1/10 seconds) setmatchtime=1" Pydiction configuration filetypepluginonletg: pydiction_location= ' ~/.vim/tools/pydiction/complete-dict ' letg:pydiction_menu_height= 20Use the TAB key in vim to automatically complete the completion.650) this.width=650; "src=" Http://s3.51cto.com/wyfs
Python is mainly used sublimetext2 to download directly on the website can beAfter the download is complete, enter the shortcut key ctrl+~ open the Python interpreter belowEnter HEREimport urllib2,os;pf=‘Package Control.sublime-package‘;ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),‘wb‘).write(urllib2.urlopen(‘http://sublime.wbond.net/‘
Call the AutoComplete method by using the ID to take the input tag objectScript> varsources= [ "ActionScript", "AppleScript", "ASP", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Pytho
Author: Dflying Chen (http://dflying.cnblogs.com /)For more information, see ASP. NET Atlas AutoComplete Behavior or AutoComplete Extender)
I believe that anyone who knows about AJAX knows about the auto-completion function (if you do not know about it, please try Google Suggest ), even a lot of friends are interested in AJAX only when they see the dazzling functions it brings and start learning. ASP. NET
Compile autoComplete plug-in native js and autocomplete in js
Recently, when there are too many drop-down options, you need to enter keywords to search for the content. However, the project was too busy, so there was no time to do it, because I want to write some content using native js, the idea of writing the plug-in using native js is as follows:Step 1:FnInit implements initialization of some fieldsStep
IE autocompleteinternet explorer's autocomplete
Frequently people are confused by the various dropdown quick-complete boxes in IE. most people lump them all under the term "AutoComplete. "There are actually several features in play, and today I will describe them all.
Typed UrlsTyped Urls appear when you click the down arrow at the right (or left, depending on locale) end of the address bar's edit box. the
IE autocompleteinternet explorer's autocomplete
Frequently people are confused by the various dropdown quick-complete boxes in IE. most people lump them all under the term "AutoComplete. "There are actually several features in play, and today I will describe them all.
Typed UrlsTyped Urls appear when you click the down arrow at the right (or left, depending on locale) end of the address bar's edit box. the
Http://jqueryui.com/download/UI Custom-selected AutoComplete will automatically add the Dependent menu module ... However, Easyui also has its own menu, so ...Toss a long time to explore the solution--The. menu of the UI is replaced by. Mulu_kk;The Menufocus in AutoComplete is replaced with Mulu_kkfocus;MenuSelect in AutoComplete replaced with Mulu_kkselectToss t
"). AutoComplete ({
Source: "Remote.ashx",
Minlength:2
});
Then receive on the server side and output the corresponding result, note that the parameter name passed by default is term:
Copy Code code as follows:
public void ProcessRequest (HttpContext context)
{
The parameter name of the query defaults to term
String query = Context. request.querystring["term"];
Context. Response.ContentType = "Text/javascript";
Author: dflying Chen (http://dflying.cnblogs.com /)
For more information, see ASP. NET Atlas AutoComplete behavior or AutoComplete extender)
Let's test the above two methods through an instance:
First, let's create a dictionary to provide an automatically completed list. This dictionaryCopyFromAtlasFor example. Net. Save itWorddata.txtAnd placeApp_dataDirectory.
Word List
Code highlighting produced
Http://www.runoob.com/jqueryui/example-autocomplete.htmlCustomize the data and show that you can use a custom data format and display the data by simply overloading the default focus and selection behavior. Try to type"J", or press the DOWN ARROW key to get a list of items. "en">"Utf-8"> "stylesheet"href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> "stylesheet"href="Http://jqueryui.com/resources/demos/style.css"> "Project-label"> select an item (please type"J"): "Project-ico
, or maybe enter email addresses from an address book.If the option data volume is small, for example, less than 10 items, I think it is better to use radio or select.AutoComplete usage example (local static data)Js Code1.
2.3. script4. $ (function (){5. var availableTags = [6. "ActionScript ",7. "AppleScript ",8. "Asp ",9. "BASIC ",10. "C ",11. "C ++ ",12. "Clojure ",13. "COBOL ",14. "ColdFusion ",15. "Erlang ",16. "Fortran ",17. "Groovy ",18. "Haskell ",19. "Java ",20. "JavaScript ",21. "Lisp
","PHP","Python","Ruby","Scala","Scheme"];//this uses an array as the data source, and Availabletags is the name of the array.$ ("#tags"). AutoComplete ({source:availabletags});});/************* Remote Data ***************/$("#autocomplete"). AutoComplete ({Source:function(Request, Response) {$.post ("Server-side addre
Important : Similar to configuration options, the AutoComplete plug-in method is
not called directly , and is
autocomplete() indirectly invoked through methods. For example:
$ ("#title"). AutoComplete ("Method name", "Parameter 1", "Parameter 2");List of AutoComplete methods close ()Turn off the menu for a
Automatic completion of Google search input box
Now, using the AutoComplete widget of the jquery UI, we can simply and easily implement the AutoComplete features of the Google search box in the above picture.
The current latest version of the JQuery UI is 1.10.3. Due to differences in usage between versions, the introduction of AutoComplete usage from other sit
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.