The recommended use of slf4j (simple Logging façade for Java) as a log api,slf4j is an easy façade for logging systems that allows end users to use their desired log systems when deploying their applications.
1, SLF4J Advantage
Compared to using
When using jquery, if you're looking for a container (such as a div or some of the child elements in a table), it's easy to use the Find method. Find will use the iterative method to look for all eligible child elements, and can be unified, batch
I've been learning jquery recently, and I've been recording it by the way.
Html
Copy Code code as follows:
Css
Copy Code code as follows:
. scroll{
Background:url (.. /image/scroll.gif) no-repeat
Web front-end development often encounter the page to make a form or do some table effect as the same content to the same cell inside the display, The general method is the table inside the set table but this method will increase the burden of the
Not very clear can first look at the QQ letter when the operation, or refer to the demonstration of this article: http://demo.jb51.net/js/email_qq/index.htm
Its function has approximately the following three steps:
A recipient box, and
And then suggest going to see Zhang Zixiu to learn the jquery series from the zero-start
This series of articles navigation
Learn jquery from scratch (i) a groundbreaking introductory article
Learn jquery from scratch (ii) a universal selector
Copy Code code as follows:
Args is to internal usage only
Each:function (object, callback, args) {
var name, i = 0,
Length = Object.length,
Isobj = length = = Undefined | | Jquery.isfunction (object);
if (args) {
if (isobj) {
For (name
Copy Code code as follows:
Used for trimming whitespace
Trimleft =/^\s+/,
TrimRight =/\s+$/,
Use native String.Trim function wherever possible
Trim:trim?
function (text) {
return text = null?
"" :
Trim.call (text);
} :
Otherwise
Copy Code code as follows:
/**
* Floating div timed display prompt information, such as Operation success, failure, etc.
* @param string Tips (content of hints)
* @param int height display information from the height of the top of the
(This does not mean that jquery's performance is excellent, whereas it is only a relatively closed library and cannot be optimized from outside intervention). This article records a failed optimization experience.
Optimization IdeasThis time the
$we often select or generate DOM elements by passing in a string to $, but this is risky if the string is from user input.
First look at a demo:http://jsbin.com/duwuzonife/1/edit?html,js,output
$ (" ");
When the user enters a string
First look at the English explanation bar:
Children method:
Find Method:
Through the above explanation, can be summarized as follows:
Both 1:children and find methods are used to obtain the element's child elements, neither of which returns text
The Wrap () function is used to wrap the specified HTML structure outside each matching element.Relative to this function is the unwrap () function, which is used for the parent element of the current matching element (only the parent element is
First, what you need to know is:
1, KeyDown ()
The KeyDown event is triggered when the keyboard is pressed.
2, KeyUp ()
The KeyUp event triggers when the key is released, which is what happens when you press the keyboard
3, KeyPress ()
The KeyPress
This example for you to share the jquery implementation of the picture upload preview and delete the specific code, tested at present to meet Google, Firefox, 360, ie6,7,8,9,10,11 and other browsers for your reference, the specific content as
Using JQuery bindings and binding event listeners is very simple. But when you bind multiple listeners to an event for an element, how do you precisely bind one of the listeners? We need to know the namespace of the event.
Look at the following
The example in this article describes how jquery obtains values from the form name. Share to everyone for your reference, specific as follows:
Value by name:
$ ("Input[name= ' mobile ']"). Val ()
Value by ID:
$
First, the client code, the server and then decode.
Client sends data:
var names = encodeURIComponent ("Electricity");
names = encodeURIComponent (names);
$.post ("test.do?names=" +name,null, Function () {});
Service-Side decoding:
Gets
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