The effect is as follows
The code is as follows
The code is as follows
Copy Code
Back to Top Sitemap Article Center Free resources Software downloads Chop suey tag label
Core code
The code is as follows
Copy Code
function Fnshuffle (arr) {var tmp, ran, len = arr.length;for (var i = 0; i ran = parseint (Math.random () * len);TMP = Arr[i];Arr[i] = Arr[ran];Arr[ran] = tmp;}return arr;}
Look at a registration get validation countdown effect
Common examples of obtaining authentication codes on cell phone or email
The code is as follows
Copy Code
User Registration Countdown Effect
Scroll to the top:
The code is as follows
Copy Code
$ ('. Scroll_top '). Click (function () {$ (' html,body '). Animate ({scrolltop: ' 0px '}, 800);});
Scroll to the specified location:
The code is
Detect if special characters are included
The code is as follows
Copy Code
Determines whether a string contains a specific string
The code is as follows
Copy Code
1, use more than 2 kinds of way to request JSCreate a script with createelement and then appendchild to the head tag2, direct use of write escape after output2, to determine whether a character starts with a letter, followed by the letter + digital +
Example
code is as follows
copy code
var F = function (name) { this.name = name; }; F.prototype.getname = function () { return this.name }; var f = new F ("haha"); var dosome = function (fun) {
Here I only posted my js part of the code .... The main focus of HTML code is to put the part that needs to be printed" " can be
The code is as follows
Copy Code
var bdhtml=window.document.body.innerhtml; Get the entire
Simplest two-dimensional array ordering
The code is as follows
Copy Code
Support Chinese sort
Like what
The code is as follows
Copy Code
var arr = [['], ' country '], [' Ah ', ' ']
Code one (using small tricks or hacks to determine the browser)
The code is as follows
Copy Code
var ie =!+ "v1",IE1 =!! Top.execscript,Ie2 = (function () {/* @cc_on@if (@_jscript)return true;@else * *return false;/*@end@
JS method can take advantage of the FCKeditor is a fckeditorapi.getinstance can be, the specific code as follows.
The code is as follows
Copy Code
var oeditor = fckeditorapi.getinstance ("FCKeditor1");var ODOM =
• Look at "| |" First, see the following code:
var a,b= "B";Alert (a| | b);//bvar a=0,b= "B";Alert (a| | b);//bvar a= "", b= "B";Alert (a| | b)//b regardless of the value of B, when a equals undefined, "", 0 o'clock, a| | b equals B, otherwise
---------------------------------------Function Name: FucchecktelFunction Description: Check whether the phone numberParameter description: The string to checkReturn value: 1 is legal, 0 is illegal
The code is as follows
Copy Code
In JS syntax, the var keyword can be used to declare variables. But when you create an object and assign it to a variable at the same time, Var cannot be saved in IE9, but it's normal in chrome.
The code is as follows
Copy Code
$()
Well deserved, the most valuable function, can save how much traffic ah. The first to be realized by Prototype.js, the legacy of the prehistoric era of the precious beast, now has many variants:01.function $ () {var elements = [];for (var i = 0;
Describe:
This javascript will help people with your email. Just click E-mail, someone! And JavaScript will ask for the email address, subject, and so on and then you, the new mail, is open to you.
e-mail someone!
Introduction to JavaScript Search tutorial
The search () method retrieves the substring specified in the string, or retrieves a substring that matches the regular expression.
GrammarStringobject.search (regexp) parameter descriptionRegExp This
Many OOP languages support two inheritance methods: interface inheritance and implementation inheritance. Interface inheritance only inherits the method signature, while implementation inheritance inherits the actual method. Because the function
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