Developing JavaScript Unit Test framework using MooTools

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

JavaScript how to quickly judge IE browser (compatible with IE10 and IE11)

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

Two scenarios for avoiding form repeat submission in JavaScript

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;

Introduction to 10 design flaws in JavaScript

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

Proficient in the controls and settings in Windows Store applications built with JavaScript

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

How to convert the lunar calendar through JavaScript

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

How to implement a timeline with JavaScript

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

Solve Iscroll hyperlink open problem with JavaScript

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

JavaScript Tutorial: Making a scalable menu

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.

Developing a modular JavaScript component

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

JavaScript creates advanced objects

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

Write a JavaScript Asynchronous call Framework (Part 5

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

The indexof of JavaScript functions

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

Write a JavaScript Asynchronous call Framework (Part 2

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

JavaScript indexOf () method

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

The problem of replacing replace function in JavaScript

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

JavaScript Dom Technology (ii)

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

The problem of the transfer of arrays in JavaScript array and VB DLL

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:

Some problems with JavaScript array code

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

Detailed JavaScript closures

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

Total Pages: 5378 1 .... 1431 1432 1433 1434 1435 .... 5378 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.