If you get the "current" domain name host = Window.location.host;
Url=document.domain;
url = window.location.href;
Get full URL path: The following code can be used to fully document the results:
thisdloc = document.location; Thisurl = document.
This article lists 24 suggestions to make your code writing process easier and more efficient. Maybe you're a JavaScript beginner, just finishing up your Hello world, and there's a lot of tips that will be useful to your work; maybe some of the
JavaScript TutorialsJavaScript is the most popular scripting language in the world, and JavaScript is an interpreted programming language that runs in browsers. In the Web world, only JavaScript can drive web pages across platforms, across browsers,
Logic and (&&)Logic and (&&) operations can be applied to any type of operation, not just Boolean values,The,&& operator does not necessarily return a Boolean value if there is an operand that is not a Boolean: follow these rules:1. If the first
/* Progressive enhancement smooth degraded web page structure layer (structural layer): HTML presentation layer (presentation layer): CSS Behavior layer (behavior layer): JavaScript 1, using meaningful markup to construct the structure of the page;
JavaScript Regular Expressions1. Using the JS regular expression, first of all to understand the JS regular expressions commonly used symbols, such as:
/.../
Represents the beginning and end of a pattern
^
Match
Overview:One of the main features of NPM for the JavaScript community is to help developers discover the libraries and frameworks needed in NPM Registry. NPM's powerful search capabilities help to find a set of related packages, while its built-in
Popular JavaScript libraries, such as jquery, mootools, prototype, dojo, and Yui, help you complete common JavaScript tasks. These JS libraries provide many ready-made functions for client actions (events), animation effects (effects), and Ajax
Explanation of ES6 syntax iteration protocols and iterator protocols; explanation of es6
The supplement of ECMAScript 2015 is not a new built-in or syntax, but a protocol. These protocols can be implemented by any object that complies with certain
Simple and generous wordpress Themes, with themes for source code download and wordpress source code download
The cu topic is designed by the crazy uncle. Its concise and generous interface is one of its biggest features.
Shoufujun also prefers
The most comprehensive android gui templates and line charts in 2014 are available for free. androidgui
It has been a long time since the last GUI template was shared. The design trend is constantly changing during this period. Google has released
My Node. js learning path (4) -- unit test and node. js unit test
NPM installation:
Npm install nodeunit-g
Supports command line and browser running. Various assertions. In node. js, modularize the method to export exports. If it is an object to
Verification of mobile phone numbers (starting with 13 and starting with 158,159, 11 digits in total)Copy codeThe Code is as follows:Var re;Var ss = document. getElementById ('textbox3 '). value;Re =/^ (13 [0-9] {9}) | (15 [89] [0-9] {8}) $/If (re.
In fact, it is mainly implemented through window. orientation. Let's take a look at the code below.
Copy codeThe Code is as follows:Function orient (){If (window. orientation = 90 | window. orientation =-90 ){// Ipad and iphone portrait screen;
BKJIA quick translation: today, even general internet users know how to make websites run faster when designing websites: Reduce the number of requests sent to servers and reduce the JPEG size, and get services from content delivery network
This article mainly introduces the parsing of rule instances for Javascript type conversion, involving knowledge about javascript type conversion. If you are interested in this article, let's learn about it. type conversion can be divided into
Learn how to use javascript to solve asynchronous programming exceptions. If you are interested, refer
I. Two core difficulties in JavaScript asynchronous programming
Asynchronous I/O and event-driven allow single-threaded JavaScript to execute the
Learning Open-source frameworks, kids shoes are most interested in designing ideas and implementation skills. I recently studied jQuery source code to record my understanding and experiences on jquery. I will share with you that the right should be
This article mainly introduces Node. js module loading details. This article describes how to load core modules, file modules, directory modules, and file Loading modules, for more information, see JavaScript, one of the most frequently used
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