Okay, I'll just say some of the things I used to do. It is also very effective to use the statistical report to search the antecedents of the use of the keyword.
Many beginners basically don't pay attention to the use of the Statistics report
Of course, to generate thumbnails of this work if the program to complete, the effect will be much better, but sometimes for some reason, such as the server does not support GD and so on, it is inevitable to ask for CSS.
To reduce a large picture
Margin in Chinese we translate the outer margin or outside filler (the outer margin is referenced in this article). He is the underlying attribute of the element box model (box models).
First, the basic characteristics of margin
The margin
Invert Property
The Invert property flips all the visual properties of an object, including color, saturation, and brightness values.Its expression is also simple:
Filter:invert
Let's take a look at the picture effect before and after adding the
Ado
DropShadow Property
The DropShadow property is intended to add shadow effects to an object. The effect it does looks like leaving the original object out of the page and then displaying the object's projection on the page. Take a look at its
This code is often visible in JavaScript scripts:
〈a href= "Javascript:changenum (); void (0);" 〉here〈/a〉
But what does void (0) mean here?
In JavaScript, Void is an operator that specifies that you want to evaluate an expression but not return
Anonymous functions can effectively control the scope of variables and construct closures (Closure) to prevent pollution of global variables. In JavaScript, there are several ways to write anonymous functions:
Error mode: syntax error warning
The semicolon of JavaScript represents the terminator of the statement, but because JavaScript has a semicolon-inserted rule, it is a very confusing thing, and in general, a newline produces a semicolon, but the reality is not , which means that
var ClassA = function () {
THIS.PROP1 = 1;
}
CLASSA.PROTOTYPE.FUNC1 = function () {
var that = this,
VAR1 = 2;
function A () {
return function () {
alert (VAR1);
alert (THIS.PROP1);
}.apply (that);
};
A ();
Introduction: In JavaScript to verify the mail code is very common, the Internet can find many, mainly through the regular expression of JS to achieve, this article mainly discusses this very common code, suitable for novice reading learning
Commonly used check regular expression, need to be difficult to find, the collection of it.
Verify Number: ^[0-9]*$Verify the N-bit number: ^\d{n}$Verify at least n digits: ^\d{n,}$Verify the number of m-n bits: ^\d{m,n}$Verify numbers beginning
Trick fourth how to use an operation function
This is a special built-in function eval includes an operand for its arguments, an operand, and a value to be returned. This function is useful for computing a numeric string that is represented, for
String
I. OverviewStrings are almost ubiquitous in JavaScript, and when you're dealing with user input data, when you're reading or setting the properties of a DOM object, there's certainly more to it when you're manipulating cookies .... The core
Regular
The method for constructing regular expressions is the same as for creating mathematical expressions. That is, using multiple metacharacters and operators to combine small expressions to create larger expressions.
You can construct a
Grammar | regular
A regular expression is a literal pattern consisting of ordinary characters (such as characters A through Z) and special characters (called metacharacters ). This pattern describes one or more strings to be matched when looking
Returns a string that is searched for the execution specification expression. Read-only.
RegExp.input
The object associated with this property is always the global RegExp object.
Description
Any time a string is changed, the value of theinput
Object
The RegExp object in JavaScript is used for regular expression-related operations, and this object provides a method test to determine whether a string satisfies a pattern. The return value is True/false.Today I came across a question:
Here
Moves the value of a variable to an unsigned right by the number of digits specified in the expression value, and assigns the result to the variable.
result >>>= expression
Parameters
Result
Any variable .
Expression
Any expression
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