How to create a parallax effect of the site, in this article we will introduce you to create parallax effect through JavaScript, without using any third-party libraries such as jquery, in the production of parallax effect, the different elements of
*1, Variable type:JavaScript is a weak type, a variable can store any type, and the run-time type is variable;-> variables can be converted to type;*/
/*2, Variable declaration:*/var i;var index;var i, index;var i = 0, index = 2;/*Variable
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
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->
Date object is a DateTime object whose primary function is to implement a date-time processing
1. Create Date Object
Copy Code code as follows:
var mydate = new Date ();
Or
Copy Code code as follows:
var mydate =
What's the prototype?
A Function type has a property prototype, which translates directly into a prototype. This property is a pointer to an object that contains properties and methods that are shared by all instances (objects) generated by the
Array arrays
1. Introduce
An array is an ordered collection of values. Each value is called an element, and each element has a position in the array, represented by a number, called an index. JavaScript arrays are untyped: array elements can be of
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
JavaScript objects can be viewed as unordered collections of attributes, each of which is a pair of key values that can be added to the deletion.
Everything in JavaScript is an object: A string, a number, an array, a date, and so on.
In addition
The array type is the most commonly used reference type in ECMAScript. The data in ECMAScript is quite different from the arrays in most other languages. Although the data in ECMAScript is an ordered list of data like an array in other languages,
have been so busy lately, take advantage of 51 to update the program.
This edition mainly adds and improves the following things:
1, to compare the string to Localecompare instead;
2, multiple Sort objects can be used in one sort (reorder when
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
The arithmetic right shift and logical right shift of negative numbers in JavaScript are very confusing, especially the logical right shift >>>, you will find that even a very small negative number, after the right shift, will also get a huge
The original HTML string is as follows:
var text= " "
+" '
+ ' ";
1. The following uses the jquery library to convert the text string variable to a jquery object.
The jquery code is as follows:
Alert ($
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
Gets the user agent string and all lowercase.
var ua = Navigator.userAgent.toLowerCase ();
document.write (UA);
In the previous article, we introduced the browser rendering engine, platform, Windows operating system, mobile device and game
Original: http://www.cnblogs.com/pigtail/archive/2012/03/09/2387486.htmlFirst, to say that | | (logical OR), which, literally, returns false only when both the front and back are false, otherwise it returns true.Alert (true| | FALSE); TrueAlert
The history of JSIn the 1995 of the last century, Netscape was the most famous first generation Internet company in the Web era with its navigator browser.Because Netscape wanted to be able to add some dynamic effects to the static HTML page, it was
OriginalTranslator: Fang should hangSource: https://www.v2ex.com/t/310767?f=tt&utm_medium=hao.caibaojian.com&utm_source=hao.caibaojian.comHey, I recently received a Web project, but honestly, I haven't had much contact with web programming in the
Processing Form of Vue. JS getting started tutorial, vue. js getting started tutorial form
The examples in this article share the content related to Vue. JS form processing for your reference. The specific content is as follows:
Basic usage
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.