The QQ website has a website report function. After reading some js code, I thought it was well written and I won it. Below is an email verification and url verification JavaScript code, share it with you for email address verification
The Code
How to Use JS to play wav files? Theoretically, JavaScript can be used to embed a window Player Plug-in a webpage to play the files ., However, the versatility is not very good. You can use it in IE. If you are interested, please refer to the
In this article, the author tells about the delete error in the book "JavaScript Object-Oriented Programming Guide" and details the implementation of the delete operation, limitations and performance in different browsers and plug-ins (firebug here).
Sometimes you may use some ideas to change your mood, such as JS functions to dynamically add CSS style sheet files, so that you can randomly load mood files. If you need them, you can understand them and give them a function first.
The Code is as
The following is the code for verifying the phone number in JS. It is very practical and is the first code for everyone:
The Code is as follows:
Function Checkreg (){// Verify the phone number, including the phone number 153,159If (document. form.
JQuery plug-ins are the favorite of web designers. From Image slide, image galleries, and navigation plug-ins, they are so numerous, so diverse, so amazing and interactive that you can make beautifying websites, of course, you may not be good at it
Due to project requirements, some text boxes need to disable the right-click and copy-and-paste functions, which were just implemented in JS yesterday.
The Code is as follows:
Function click (e){If (document. all){If (event. button = 1 | event.
The setTimeout and setInterval of JavaScript are two methods that can easily fool others' feelings, because we often think that the call will be executed in the established way. I think many people share the same feeling,
JavaScript timer that is
The special effects of JavaScript writing, seemingly typed, make the text appear one by one. You can write a blessing to your loved ones based on this, which is indeed appropriate.
literal text function makeArray () {this. length = makeArray.
Find some poor information about dojo. Thank you! Introduction:
Here we will give you an initial course on dojo. You may say to yourself, "skip this section because I already know javascript and know website development very well. "But here is an
This article mainly introduces the method and code for starting the script file of node. js at startup. Here, I will share it with you. If you need it, refer to it.
The Code is as follows:
#! /Bin/bash### BEGIN INIT INFO# Provides: xiyoulib#
This article mainly introduces node. js solves the problem of obtaining the actual file type of an image. This article obtains the mime-type of the file type based on the binary stream and file header, then reads the binary header information of the
This article mainly introduces how to increase the loading speed of javascript. write output js solves the problem of slow ad loading speed. If you need it, you can refer to it. Generally, some js Code will be loaded on our website, such as
This article mainly introduces the basic explanation of object-oriented JS, such as the factory mode, constructor mode, prototype mode, hybrid mode, and dynamic prototype. If you need it, What Is Object-Oriented? Object-oriented is an idea!
Node. js uses the Google Chrome V8 engine, which has good performance and provides many system-level APIs, such as file operations and network programming. Node. js is a comprehensive background runtime that provides many functions that can be
Whenever we mention the reverse proxy, we usually think of Nginx, but today we temporarily ignore the well-known Nginx, using Nodejs, also a single-threaded, event-loop server brother. In many scenarios, I have applied for a VPS host to host and run
This article mainly shares the judgment IE, FF, Opera, Safari, Chrome and other browsers and versions of the two methods, need friends can refer to the version of the ie10-ie11 because of the problem, no longer support document. all judgment, so the
This article mainly introduces examples of characters other than numbers prohibited by jquery (pure digit Verification Code). If you need a friend, you can refer to the pure digit verification code, which is used as follows:
The Code is as
This article mainly introduces jquery's method of using different css style sheets for browsers of different sizes. If you need jquery, you can refer to this method to support IE and other browsers.
1. Define two links first. Of course, you can
There are two methods for JavaScript to determine the browser type. One is to distinguish the browser type based on its unique attributes, the other method is to analyze the browser's userAgent attributes to determine that JavaScript is the main
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.