CSS beginners feel very simple, but with the deep learning, they feel the depth of CSS water, and usually encounter various pitfalls. First, summarize some common pitfalls.Case Insensitive
Although CSS is usually written in lower case, CSS is not
Today, I ran to a factory for an interview as a front-end dish and ended in failure. I remember the interviewer asked me about the execution sequence of js on a page. As a result, I have not studied it myself, so I am not very clear. I am confused
Copy codeThe Code is as follows: untitled document declare 3A, 2A, And 1A tourist attractions All scenic spots within the territory of the People's Republic of China that have officially started tourism business for more than one year, including
How this works
If a function is called as a method of an object, this is assigned as this object.Copy codeThe Code is as follows:Var parent = {Method: function (){Console. log (this );}};Parent. method ();//
Note that this behavior is very
Visible area width of the webpage: document. body. clientWidthVisible area height: document. body. clientHeightVisible area width of the webpage: document. body. offsetWidth (including the width of the edge)Visible area height of the webpage:
Copy codeThe Code is as follows: untitled document Click Me! 1111111111111111 2222222222222222 3333333333333333 4444444444444444 5555555555555555 You can capture the objects of the current event, such as event. srcElement. tagName, to
Example:Copy codeThe Code is as follows: change the color of tr after the mouse 1 123 abvx 465465 546654654 1 123 abvx 465465 546654654 1 123 abvx 465465 546654654
The setInterval method can be used to call the function cyclically at a specified interval until the clearInterval method cancels the loop.
When the clearInterval method is used to cancel a loop, you must assign a value to the call of the
The third type of test is available.
First:Copy codeThe Code is as follows:If (window. addEventListener ){Alert ("not ie ");} Else if (window. attachEvent ){Alert ("is ie ");} Else {Alert ("this happens when the browser of the old version that does
Copy codeThe Code is as follows:$ (Function (){/* JQuery restricts that only numbers can be entered in the text box */$ (". NumText"). keyup (function (){$ (This). val ($ (this). val (). replace (/\ D | ^ 0/g ,''));}). Bind ("paste", function () {//
Copy codeThe Code is as follows:$. Ajax ({Url: 'change this address to your own ',Data: {S_CourseID: courseid, CurrTime: new Date (). getTime ()}, // Add a timestamp; otherwise, data will not be updated automatically.DataType: 'json ',Success:
Copy codeThe Code is as follows:/**** Description: map method implemented by js.* @ Returns {Map}*/Function Map (){Var struct = function (key, value ){This. key = key;This. value = value;};// Add a map key-Value PairVar put = function (key, value
When Eclipse 3.7 is used, the jquery. xx. js file is added to the project, and an error message (Red ×) is displayed for this file. However, this prompt is not displayed in versions earlier than Eclipse 3.7. This is because Eclipse 3.7 has added the
2. Operate the DOM tree
For the convenience of browsing, we sometimes add "back to top" at the end of each section (back to top ).
Js Code
$('back to top').insertAfter('div.chapter p');$('').prependTo('body');The front is the HTML code we want
/*** Click all function permission trees obtained by the role tree subnode * @ param roleID * @ return */public List
GetRoleRightManageTree (int roleID) {List
TreeNodeList = new ArrayList
(); TreeNode rootNode = new TreeNode
$ ('Tbody', '#' + tableId). append ('xxx ');
Dynamically change the background color with the onmouseover event of js
If this. style. backgroundColor = # eeeeee
Will appearUncaught SyntaxError: Unexpected token ILLEGALUncaptured SyntaxError:
I. Introduction
This article uses springMVC and ajax to make a small demo to return the JSON object to the page. There is no technical content, purely because springMVC framework has been introduced in the recent project for learning, don't like it,
Some time ago, I had to perform a lot of verification on my website. I first thought of finding some verification controls on the Internet. One search is really a lot, but it is very frustrating. Most verification controls on the internet come with
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