Let's look at the status of JavaScript unit testing and the testing tools.
1.JsUnit
We are already using it as our Unit test tool.
Advantage:
Can be called by ant build file;
Start the browser to run the test case;
Eclipse plug-in support;
In this paper, we describe the method of implementing the random ordering of the array by JavaScript. Share to everyone for your reference. The implementation methods are as follows:
?
1 2 3 4
function Shuffle (o) {for (Var j, x, i
JavaScript write bright light fluctuation effect, see some flash effect is good, with JS also simulate, there are many imperfect places, for you reference.
See Flash's implementation of this kind of animation is very convenient, so try to fool
This article to share is a personal summary of the 10 very common native JavaScript tips, are usually used in the project, here summarized record down, the need for small partners can refer to.
1, the implementation of string length interception
?
inheritance of JavaScript non-constructors
This article is to introduce you to do not use the constructor to achieve "inheritance", very simple, small partners can be very familiar with the understanding of the.
One, what is the "non-constructor"
The basic concepts of lazy loading and preload. Lazy loading is also called delay loading: The previous article has introduced: JS pictures delay loading pictures or certain conditions to load some pictures. preload: Loading pictures in
This article mainly introduces the JavaScript extension array contains Method example, this article directly gives the realization code, needs the friend may refer to under
JavaScript array has no contains method, sometimes it is inconvenient, the
This paper discusses the difference between the variable declaration in JavaScript and VAR, and the scope of the variable declaration in JS is in function, so we often see that the method of avoiding the global variable pollution is
1 2
This article mainly introduced the JavaScript node operation copy node CloneNode () The use, needs the friend may refer to underThe CloneNode (a) method accepts a Boolean parameter that indicates whether a deep copy is true: A deep copy is performed,
Doing the project is a learning process! As a learning C3, from C programmers to the front end, many of the rules in JavaScript is no way or say 1:30 will not understand. I met one today, which is roughly the code. var A; Global variablesfunction
Cgi|javascript|js| Tutorial uses JavaScript instead of CGI
You might be familiar with CGI scripts, and you can use CGI to pass numbers or variables from one page to another on a form. Of course, you can use "POST" to pass a variable to a separate
I've been looking for a good JavaScript parser for Jscex, before I used Narcissus, and I wrote related articles. Unfortunately, Narcissus uses SpiderMonkey extensions, so it is not implemented with ECMAScript 3 and cannot be used in browsers such as
javascript| Tutorial
The JavaScript language is object-based (object-based) rather than object-oriented (object-oriented). It is said to be an object-based language, mainly because it does not provide many features such as abstraction, inheritance,
The array sort function of JavaScript is sorted by default in ascending order of ASCII characters.
Arrayobj.sort (sortfunction);
Parameters: Sortfunction
Options available. is the name of the function used to determine the order of elements. If
Author Introduction:Shing Lum, a senior web front-end engineer who has worked in the Web front-end for many years, is proficient in web front-end technologies such as CSS, HTML, JavaScript, jquery and Ajax, and has accumulated a lot of experience in
# The JavaScript authoritative guide notes-part 1thDescription: Printed version: April 2012 1th Edition, September 2016, 17th time printing.The style of the book and "effective Java" very similar, recommended.This note is recorded in reverse order.--
[Simple message book] is implemented using the newly added HTML database, and the message book is added
Database-implemented WEB message book
Var datatable = null;
Var db = openDatabase ('mydata', '', 'My database', 102400 );
Function init
The implementation of the mini-program five-star evaluation function and the mini-program five-star evaluation function
Mini-app five-star rating Function
Let's take a look:
The effect to be achieved: the number of stars to be displayed when you
Front-end questions of chinansoft high-tech WEB and front-end questions of chinansoft high-tech web
For a friend's interview question, Baidu once looked at this soft high-tech seems to be a training institution... The answer below is my
This article describes how to delete array elements in javascript and how to clear arrays, for more information about how to delete array elements and clear arrays, see the next article.
Simple Method for deleting array elements and clearing arrays
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