From today on to write their own learning things, a little excited. (Just give mom massage foot, finger a bit bad to make) good, nonsense not to say, this is learning is JS object-oriented knowledge.Object-oriented : is to use the idea of the object
The following is a note from the section on pattern matching for regular expressions in the JavaScript authoritative guide (sixth edition).
Defined
There are two ways to define regular expressions in javascript:
var pattern =/
1. Scope of variablesGlobal variables can be read directly inside the functionvar n=999; Function F1 () {alert (n); }F1 (); 999The value of a local variable cannot be read outside the functionFunction F1 () {var n=999;} alert (n); ErrorNote: It is
collect some common JavaScript regular expression matching rules, such as matching phone number, Email, Chinese characters, social Security number, postal code, QQ number, filter blank line, match specific numbers, etc. Think this thing is very
1. If HTML is a structure, CSS is a representation, then JavaScript is a kind of behavior, really can let the page move.2. I learn JS from two aspects, we must understand that JS is used in response to user action. And the user's operation is two
Closures (closure) are a difficult and unique feature of the JavaScript language, and many advanced applications rely on closures.The scope of a variableTo understand closures, you must first understand that JavaScript special variables work.
One, what is closures?The official explanation is that closures are an expression (usually a function) that has many variables and environments that bind them, and so these variables are also part of the expression.In layman's terms,all function in
Window. open () implements post transmission parameter, window. openpost
In actual projects, we often encounter this requirement, that is, to jump between sub-system pages and open them on a new page. My project team uses the SSH framework,
Strange delete operators and JavaScript operators in javascript
The delete operator is not very common in javascript, but its features are indeed very strange.
1. Delete the attributes of an object. Code:Copy codeThe Code is as follows:Var o = {A: 1,
JQuery implements level-2 drop-down navigation with animation Effects
This article mainly introduces jQuery's second-level drop-down navigation method with animation effects. It involves jQuery's skills for operating css styles and mouse events. It
How to Implement the semi-transparent and progressive Effect of Gangu images in js
This article mainly introduces how to implement the semi-transparent and progressive special effect of Gangu images in js. It involves the css special effect
Summary of javascript and css3 animation combination, javascriptcss3
When Html5 and css3 gradually become mainstream, I am still very accustomed to using js to do some simple animations. Not all desktop browsers support css3. Users are also very
JQuery is used to simulate the rolling effect of Sina Weibo homepage.
This article describes how jQuery simulates the rolling effect of Sina Weibo homepage. Share it with you for your reference. The specific implementation method is as follows:
Copy
JQuery simply disables the right-click menu
This article mainly introduces jQuery's simple method of disabling the right-click menu, which is very simple and practical. Here we will share it with you. If you need it, you can use it directly.
JQuery implements a dynamic and timely font color change method
This article mainly introduces JQuery's method of changing the font color dynamically and in a timely manner. The example analyzes jQuery's skill in operating mouse events and colors,
Jquery's method for getting and setting outerhtml, jqueryouterhtml
This document describes how to obtain and set outerhtml by jquery. Share it with you for your reference. The specific analysis is as follows:
In the development process,
Jquery + easeing implements the loading animation like flash,
I interviewed a website company last year and looked at their case to find out what is interesting. A real estate official website is made of flash. It feels good.
So in my spare time, a
JQuery implements scoll anchor effect instance analysis, jqueryscoll
This article describes how jQuery implements the scoll effect of the anchor. Share it with you for your reference. The specific implementation method is as follows:
Copy codeThe
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