The bind () method is used to attach a handler to an event of each Matching Element and return the jQuery object.
. Bind (eventType [, evnetData], Handler (eventObject ))
The eventType parameter is a string that contains one or more javaScript event
4. Use the DOM Traversal method
In section 2nd, we use the attribute selector to add icons,
Can we use traversal to perform such operations? The answer is yes.
Add a Traversal method after the selector, such as
Tags made our textBold!
tags made our text Italicize!
On the first line. This tells the browser what language it's reading (in this case, HTML ).2. B Always putOn the next line. This starts the HTML document.2. c Always putOn the last line. This
Common labels:
Block a tag (link, download, anchor) Title 1 title 2 Title 3 Title 4 Title 5 Title 6 paragraph emphasize (the page is displayed in bold) emphasize (the page is displayed in italic) distinguished style list item definition list title
1. margin can also be used for translation. Its function is similar to translate haha. After an element is set to absolute, you can use margin to translate it at will. It does not occupy space as relative does, nor does it need to set relative for
Structured tags: specify the content structure, location, and importance.
... six title tags. Generally, h1 appears only once on a page for general text and content;
split a paragraph;
, italic, bold, distinguish between different content and
Use of Baidu ueditor Rich Text Editor
// The following figure shows how to configure ueditor v1.3.5 php downloaded from the official website.
Step 1:
// The configuration file should be introduced first than the function file, and then set the
How nice is cloud sublime everywhere on the Internet. It took more than a year, benefiting a lot and reducing a lot of repetitive work.
In particular:
1. flexible and powerful multi-line editing functions;
2. Quickly search for the file ctrl + p;
For front-end workers, this sentence should be very common. But for an IT worker who is idle, the question is always scratching his ears. Why?
Now let the sprinkling house start to ask questions. I hope you can answer questions (^_^ ).
1: What
This article lists ten free tools that can be used for Web load/stress testing. In this way, you can know the concurrency and website performance of your server and your WEB application.
0. Grinder-Grinder is an open-source JVM load testing
Visibility hidden objects also reserve the physical space occupied by the objects displayed, while display does not. You can save the following code to see the effect:Procedure:Sample Code: Objects with the visibility property: hidden Objects whose
CSS background style:
①. Use keywords to set values: center, top, bottom, left, right, for example, background-position: top;
②. Use percentage to set the value, for example, background-position: 50%. This mode is complex. The default value of
Copy codeThe Code is as follows:I used my own articles in previous projects. There should be no bugs. If you have any better ideas, please kindly advise,Var Return_AddStrFn = function (oldArr, newArr ){Var t = this;// Deduplication MethodArray.
The following is a summary of the implementation of regular page Jump (also called countdown jump). Various timed jump code records are as follows:(1) Use the setTimeout Function to implement timed jump (the following code should be written in the
Javascript does not have a function signature like other programming languages (what is a function signature? Simply put, it means that the function accepts the parameter type and number of parameters, and some people think that the return type
Principle: Recognition Based on the return value of navigator. userAgentImplementation:Copy codeThe Code is as follows:Function validBrowser (){Var u_agent = navigator. userAgent;Var browser_name = 'failed' to identify the browser ';If
1. Code EfficiencyVariable usage OptimizationDeclare objects and Arrays Using literal, such as var newarray =[]; Var newobject = {var p1: 'T'; vat f1: function (){}}Js searches for variables using the variable scope chain. If it is often used in the
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.