Determine if the ID number is 15-bit or 18-bit function Isidcard (idcard) {var re =/(^\d{15}$) | ( ^\d{18}$) | (^\d{17} (\d|
X|X) $)/;
if (!re.test (Idcard)) {return false;
return true; //Determine if the phone number
Turn from: http://blog.csdn.net/woaifen3344/article/details/42742893
Swift version and JS Interactive actual combat article:
http://mp.weixin.qq.com/s?__biz=MzIzMzA4NjA5Mw==&mid=214070747&idx=1&sn= 57b45fa293d0500365d9a0a4ff74a4e1#rd
OC version
Why document.write () clears the original content:
Perhaps a lot of friends have encountered this situation, that is, the use of the document.write () function to the Web page to write content, will be the original contents of the document to empty,
First, these three methods are the scopes that extend the function by changing the point of the This object of the function. Each function contains three methods that are not inherited. They are used in the same ways to invoke a function in a
Why is it called JavaScript?
The reason is that the Java language is very hot, so I want to use the popularity of Java to promote, but in fact JavaScript in addition to the syntax is a bit like Java, the rest of the other part of the basic
Import: at ordinary times we want to get a tag's properties, such as getting a button ID, which is usually written
document.getElementById ("1"). getattribute ("id")I recently saw a way to get my own data by using the event method when I was HTML5.
Original link: Wrapping text Nodes and Elements with JavaScript original date: 2014-09-04 translation Date: 2014-09-06 Translator: Anchor
When your application relies on a particular JavaScript class library, you inadvertently try to solve some of
Blocking Characteristics
The browser's processing of JavaScript consists of 2 parts: downloading and performing downloads are parallel in some browsers, and some browsers are serial, such as IE8, Firefox3, Chrome2, and the execution of serial
The first step is to save the Web page as a canvas canvas, with the help of the Html2canvas library, http://html2canvas.hertzen.com/
Html2canvas (document.getElementById ("Id1"), {
onrendered:function (canvas) {
document.getElementById ("Id2
"Eventtarget is a DOM interface implemented by objects, can receive DOM events and have listeners for them."
A eventtarget is an object that can accept DOM events and bind event listeners. The most common eventtarget are DOM element objects, and
Here are the first two concepts:1, Heap (heap)2, Stack (stack)A heap is a short name for heap memory.The stack is the short name of the stack memory.When it comes to stacks, we're talking about the use and allocation of memory, the fact that there
dom objects ' && ' Jquer Y object contrast This code will help you distinguish between two types of objects, with detailed explanations in the code!!!Comparison of JavaScript DOM objects and jquery objects
Strict modeECMAscript 5 Adds a strict mode of operation, which means that JavaScript runs under more stringent conditions. Mainstream browsers, including IE 10, have supported him, and many big projects have embraced him, defining the purpose of
There are two different data types in JavaScript, namely the basic data type and the reference data type.
The base data type contains 5 classes: number, String, Boolean, Null, Undefined
The reference data type contains the
A number of projects need to achieve page printing, especially some background management system, the following introduction of a lightweight print plugin:1, implement the page printing to introduce jquery and Jqprint. Click to download Jqprint
Basic conceptsViewport coordinates: Excludes the browser's "shell" relative to the top-left corner of the browser or relative to the frame page element's coordinates.Document coordinates: Coordinates relative to the upper-left corner of the
Closures mean that in JavaScript, intrinsic functions always have access to the arguments and variables declared in the external function in which they are located, even after their external functions are returned (end-of-life).At the same time, to
1. The first way to create an object: first define the class and then create the objectThe first way to create an object: first define the class and then create the objectfunction Stu (Sno, name, age) {This.sno = Sno;THIS.name = name;This.age =
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