Mydate.getyear (); Get Current year (2-bit)
Mydate.getfullyear (); Get full year (4-bit, 1970-????)
Mydate.getmonth (); Get Current month (0-11, 0 for January)
Mydate.getdate (); Get the current day (1-31)
Mydate.getday (); Get Current week x (0-6, 0
We can think of classes, objects, encapsulation, inheritance, polymorphism, when we raise object-oriented objects. In "JavaScript Advanced Program Design" (People's Posts and telecommunications press, Cao Li, Zhang Xin translated. The English name
As a result, read most of the day, with a general understanding, a thin aftertaste, as if nothing understand ...This article is written in reference to > Chapter 7,8,9 and ITry to explain JavaScript's object-oriented technology (object/Array->
The rule of JSON is simple: an object is an unordered set of ' name/value pairs '. An object begins with "{" (opening parenthesis), and "}" (closing parenthesis) ends. Each "name" is followed by a ":" (a colon), and the ' name/value ' pair is
The time object as a very important object, for us to learn. NET, not very important, but this does not mean that we can ignore, in fact, when the need is still a lot of, if completely dependent on the JS processing time, it will be problematic,
Brief introduction
In many traditional languages (c/c++/java/c#, etc.), functions are present as a second-class citizen, you can only declare a function with the keyword of the language and call it, if you need to pass the function as an argument
On the ASP (Server.URLEncode), PHP (UrlEncode ()) function encoding results, or through the ASP, PHP and other dynamic languages directly to write cookies in the Chinese characters, with JS Read, will encounter a coding problem, That is, the final
Suitable for readers: experienced developers, professional front-end staff.
Original author: Dmitry A. Soshnikov
Release time: 2010-09-02
Original: Http://dmitrysoshnikov.com/ecmascript/javascript-the-core/
Reference 1:http://ued.ctrip.com/blog/?p=2
In this article, the author starts with the error about delete in the JavaScript object-oriented Programming Guide, detailing the implementation of the delete operation, limitations, and performance in different browsers and Plug-ins (refer to
First, summarize the key points and problems encountered
Inheritance in 1.javascript, the best parent class provides only method sharing, attributes are written to their subclasses, and the constructors of the parent class and subclass are not
The keyword function is used to define functions.
Copy Code code as follows:
function-declaration definition:
function FuncName ([ARG1[,ARGS[...,ARGN]]]) {
Statements
}
function Expression Definition:
var funcname =
Let's go to the code first, talk nonsense ^_^
Copy Code code as follows:
/**
* Turn full angle character
*/
function Todbc (str) {
var result = "";
var len = str.length;
for (Var i=0;i{
var ccode = str.charcodeat (i);
Difference
When discussing the raw data types in JavaScript, most people know the basics, from String,number to Boolean. These primitive types are fairly simple and behave in a common sense. However, this article will focus more on the unique original data
1. Grammar and return mode
① return control and function results
Syntax is: return expression;
The execution of the statement result function, returning the calling function, and returning the value of the expression as a function result
②
Basic knowledge1. plugin file structure1.1, Manifest.jsoneach extended, installable WebApp, Skin, has a JSON-formatted manifest file that holds important plug-in-related information.
One of the most basic configuration examples:
{"
name":
Arabic numerals to Chinese numeralsCharacteristics of Chinese numerals:
Each count is followed by a throne, the throne has: ten, Hundred, thousand, million, billion.
The "Million" as a subsection, corresponding to a section of the throne,
I. The role of JavaScript "= ="
1. When the content on either side of = = is a string, the contents of the string are compared to equal.2. When the content on both sides of = = is a number, compare the size of the number is equal.3. When the
A regular expression is an object that describes a character pattern.
JavaScript's RegExp objects and string objects define methods that use regular expressions to perform powerful pattern matching and text retrieval and substitution functions.
In
JQuery text carousel effects, jquery text effects
Chatting: I 've been away from the school's ivory tower for more than half a year, and my life is no longer full of excitement. Working overtime for more than half a month in a row has finally come
Install and use gulp and install and use gulp
Global install gulp (based on node): $ npm install -- global gulp
Enter the project folder, run npm init, fill in relevant parameters, and generate the package. json that records the configuration file
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