After learning about the array, I made a typing game effect exercise.
I am also a cainiao and may not be optimized, but I also want new users to learn it together:
Below is allCode:
untitled document Today is Monday. Haha, Can you type?
Some JS small exercises are usually handy. It is worth remembering this first. If you have time, you can flip it over and continue to add...
Array sorting
1. Sort () methodCompares strings., Sort array items in ascending order (small
Prototype Object Concept
Whenever a new function is created, a prototype attribute is created for the function according to a set of specific rules. This attribute points to the prototype object of the function. By default, all prototype objects
The ecmascript variable has two types: basic type value and reference type.Basic Type Value
Simple data segments stored in the stack memory. Undefined, null, Boolean, number, and string occupy a fixed size space in the memory, which is generally
untitled document
1. Fake words are based on the number cross...
2. Fake words are based on the number cross...
3. Fake words are based on the number cross...
4. Fake words are based on the number cross...
5. Fake words are based on
When learning JavaScript, we often encounter this problem: how to control the loading sequence of dom and js on the page.Peter Michaux has an article on the methods and advantages of controlling the js loading process.According to some of his
I have been very casual before. Later, it seems that the linkbutton in. net is used in the form of ,
Today, I encountered some problems using this method. I will summarize my post and my conclusions as follows:
LinkedonclickThe event is executed
1. Object-oriented Basics
Objects are the basis of JavaScript. At the most basic level, an object is a set of attributes. 1. Object Creation
I believe many of my friends have been familiar with the object creation methods many times.
2. Unlike
Dom
Js is an object-oriented language that treats everything as an object. BOM is the browser object model.
1. window object. The window object indicates the entire browser window.Frames set -- can be referenced using window. frames [0] or window
Js verification number
Javascript restricts the input of only numbers. It determines the value of event. keyCode and limits it to only numbers. If it is not a number, an error is returned. If it is a number, it continues.
I will first introduce the
[Switch] JavaScript-core of DOM Programming
Common DOM Core components:
DOM methodCreate a node: createElement (), createTextNode ()Replication node: cloneNode ()Insert nodes: appendChild (), insertBeforeDelete node: removeChild ()ReplaceChild
There are many li tags in a ul tag, one of which indicates initializing the selected . If ul sets the height, the following ul style, and many li sub-labels, the selected li will be drowned under the scroll bar.
... ... ... ... ...
Several methods of JavaScript implementation inheritance
There are several common JavaScript inheritance methods in development. To learn more about each of them, paste the Code directly.
For a specific understanding of JavaScript object-oriented
How this works
JavaScript has a set of processing mechanisms completely different from other languages for this. In five different cases, this points to different.1. Within the global scope
this;
When this is used in all ranges, it will point to
Opening notes
This series is the most basic of JavaScript and must be thoroughly understood. Otherwise, there will be a lot of resistance in the process of learning. I feel very cordial, but this process also gave me a lot of learning and a deeper
1. Understand location objects
Location: used to obtain or set the current URL Information.
1 2 3 4 5 untitled document 6 31 32 33 34 35 36 37 38 39 40 41 42
Ii. location attributes and Methods
1. Set location. hash or obtain
The book avoids chicken ribs and scum, only discusses the essence of the Department, not about DOM and HTML, only focus on the language itself.
JavaScript is indeed a very elegant language. Use Code directly.
The following code is taken from the
// Object
// Here we define a cat object, which contains a name attribute, a big laughter attribute, and a crying method.
Var Cat = {// define a Cat object
Name: 'persian ', // It is called Persian cat
Lol :( function () {// define a loud laugh
Var
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