MooTools is a good JavaScript framework, it is simple, modular, easy to use, developers can quickly start to write scalable, compatible with good JavaScript code. I used this for two days, feeling and prototype usage is exactly the same, but the
In many cases, we generally use navigator.useragent and regular expressions to determine the IE browser version, the following introduction to use IE browser different characteristics to determine IE browser
1 to judge IE browser and non IE browser
1, JavaScript, set a variable, only allowed to submit once.
method="post" onsubmit="return checkSubmit();">
2, JavaScript, the submit button or image for disable
method="post" onsubmit="getElById('submitInput') .disabled = true; return true;
A few previous articles, I often said that JavaScript design is not rigorous, there are many mistakes.
Today, the first half of this article talks about why this is the case, and the second half enumerates 10 design flaws in JavaScript.
My
A good user experience can automatically show the data to the user in an intuitive way, regardless of the size of the appearance. When presenting data and content, you need to create a new experience with updated APIs, controls, and tools. In the
Believe someone will select the date in the page, you need to know the date of the lunar calendar! If it is Java, in the background can be converted in a flash, but on the page, through JavaScript to convert, I do not know that there are no good
These two days in busy decorating their department team site, the boss put forward a hope, in the Team site home page to put a timeline, so the department has any new events, agenda, can be displayed on the timeline. This is not particularly
When using Iscroll on mobile, the touch event binding is enabled by default and is sensitive to touch events. If the finger touches the connection, the browser will open the connection operation by default if the slide is not finished. This will not
In the previous period of time project used, the project has been released, today to organize a issued out.
No frame, pure javascript+css made two-level telescopic menu, easy to understand, with strong customization and repeat the exploitation.
Today, although most Web applications use a lot of JavaScript, how to maintain the focus, robustness, and maintainability of client functionality is still a big challenge.
While other programming languages and systems have taken for granted the
1 Create an instance of an object using the constructor function
Constructors in JavaScript, like other object-oriented languages, cannot be called directly, and are invoked automatically when an object is created with the new keyword.
The
In the previous article, we designed a chained invocation for the asynchronous invocation framework to enhance the code readability of the asynchronous call queue, and now we're writing code to implement this part of the functionality.
Call Portal
IndexOf Method:
Returns the character position for the first occurrence of a substring within a string object.
Strobj.indexof (Substring[,startindex])
Parameters
Strobj
Required option. A string object or text.
SubString
Required option. The
In a previous article, we want to design an asynchronous invocation framework that is best able to unify the interfaces of the asynchronous invocation, while the exact invocation order is independent of the implementation. So now we're going to
Definition and Usage
Definition and usage
The IndexOf () method returns the position of the the ' the ' of the ' the ' a specified string value in a string.
The IndexOf () method returns the position of the specified value at the first occurrence
Today, my colleague asked me a question about the substitution of JavaScript, and he had a string "" and wanted to use "!" To replace the "
Such as:
Found the data to find that the use of regular expressions can solve this problem
There are
One. Style programming
1. Each element of the page has a style object that manages the CSS style of the element. This was introduced in IE4.0 and was later accepted as a DOM standard. How to use:
var Odiv=document.getelementbyid ("Div1");
alert
Ladies and gentlemen: I now define a one-dimensional array in JavaScript, then call the DLL object written by VB, assign a value to this array in the DLL object, and then read the assigned array in JavaScript. How to operate.
DLL object:
This piece of code:
This code is only a change to array2, array1 should not change just ah, why the result is ABD, rather than ABC? Array2 = array1; Do you have any other meaning than to say that you assign array1 to Array2?
Thank you for your
To fully understand the JavaScript closure, first understand some of the basic principles of js, and then I give some examples to explain the Closure.An execution environment (excution Context) is created when JavaScript is executed, and the
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