1. Text Box focusOnblur: this event is generated when the input focus is lost.Onfocus: this file is generated when the input gets the focus.Onchange: this event is generated when the text value changes.Onselect: this file is generated when the text
In web development, JavaScript provides many functions for developers. These functions are sufficient before Ajax is popular, but it is difficult to build an interactive application.To this end, I have collected some JavaScript Functions that I
The script tag can be used to load and run a Javascript script across domains, but NeilFraser previously pointed out that resources are not released after the script is run, even after the script tag is removed. In order to release the script
This solution is an attempt to introduce the MVC idea into the client. Combined with Ajax, it also draws on some implementation modes of ASP. net mvc.
The example is a simple event management system with only one page. You can submit an event (post)
1. IFRAME passing values and method calls between parent and child windows
IFRAME can be passed between values and methods through JavaScript.Code
Parent.htm
IFRAME and method call call subpage value call the subpage method
The drop-down list is mostly used. If there are too many items in the drop-down list, it is difficult for users to find one of them. In this case, everyone will think of sorting, but sometimes the keyword is not always in the first place, it is
Obtain the displayed Chinese Characters
Document. getelementbyid ("bigclass" ).options000000000000doc ument. getelementbyid ("bigclass"). selectedindex]. Text
Obtain the ID in the database
Invalid argument Doc ument. getelementbyid ("bigclass").
Class: querytask
Descriptionexecutes a query operation on a layer resource of a map service exposed by the ArcGIS Server rest API
(Perform a query operation on a layer resource of the map service released based on ArcGIS Server rest API) .
TheTryStatement lets you test a block of code for errors.
TheCatchStatement lets you handle the error.
TheThrowStatement lets you create M errors.
Errors will happen!
When the JavaScript engine is executing JavaScript code, different
Javascript sounds like it is related to Java, but it is actually two different languages. Defining classes in Java is easy, but it takes some time to define a good object in JavaScript. This article introduces several methods and compares their
The full selection function of check boxes is frequently used in Web development. There are two implementation methods: client implementation and server implementation.Server implementation requires interaction with the server, so the efficiency is
1. ESRI. symbol. simplefillsymbol (style, outline, color) Properties
Property
Type
Description
Style
String
The fill style. See the constants table for valid values. The default value is style_solid. Color is
1. Use setattribute () to change the onclick attribute of tags on a webpage2. Attributes added through setattribute in IE
1. Use setattribute () to change the onclick attribute of tags on a webpage* P1
Setattribute setting style and onclick
Integer or decimal point: ^ [0-9] + \. {} [0-9] {} $
Only numbers are allowed: "^ [0-9] * $ ".
Only n characters can be entered: "^ \ d {n} $ ".
You can only enter at least n digits: "^ \ d {n,} $ ".
Only m ~ can be input ~ N-digit :. "^ \ D {m, n} $
General eventsEvent DescriptionOnClick: Click an event.OnDblClick double-click eventThe button on the onMouseDown mouse is pressedEvents triggered when the onMouseUp mouse is pressed and releasedOnMouseOver event triggered when the mouse moves over
I think I am doing front-end development, but I have almost never written any scripts recently, and I have been working on. net. This time, some features of the bootstrap front-end framework were encapsulated in the development and management
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service