1. Warning box
The warning box is often used to ensure that users can obtain certain information.
When a warning box appears, you must click OK to continue the operation.
Syntax:Copy codeThe Code is as follows:Alert ("text ")
2. confirmation box
Solve the problem of "Introducing JS file IE6 error"Problem description: The page introduces a js file that defines a function or object. When you call a function or object on the page, IE6 reports a "syntax error" or "Missing Object ". It runs
Javascript _ proto _ (note that both the front and back are underlined) and prototype can both access the prototype of the object. Is there any difference between them?
Yes, __proto _ can only be accessed using objects. prototype can only be
How eval functions work
The eval function evaluates a given string containing javascript code, and the view executes the expressions or
A series of legal javascript statements. The eval function uses the value or reference contained in the last
To ensure the readability of the webpage after style removal and comply with the web standards, pay attention to the following points:
1. Use the divs and span labels as few as possible;
2. When the semantics is unclear, when using div or p, try
The latest requirement involves browser compatibility. The first requirement is ie10.
The home page uses frameset to embed two pages. The left side is the menu bar. You can change the cols of frameset to shrink the page. Other browsers are normal,
Sometimes it is necessary to determine whether a character is a Chinese character. For example, when a user inputs content containing Chinese and English, it is necessary to determine whether the length exceeds the specified length. There are
How to use the. live () method in Query
When I was writing code today, I encountered a problem. Let's look at the Code directly:$ (Function (){$ (". File"). live ("click", function (){Var task_name = $ (this). text ();$ ("# Selecting tbody ").
Here, return contains some details:
For example, the difference between onClick = 'Return add_onclick () 'and onClick = 'add _ onclick ()'
When JAVASCRIPT calls a function in an event, the return value is actually used to set window. event.
Most of the Ajax operations in Basecamp are processing the JavaScript response SJR generated by the server ). It works like this:
This simple mode has some important advantages.
Advantage #1: reusing templates without affecting performance
Whether
1. The best way to learn web pages: learn others' web pages.
2. Document Structure
(Hypertext Markup Language)
3. font marker. The font size is 7 and the color is red.
4. bold
enhanced tone
italic enhanced tone
upload
subscript
1. iframe labels
Using the iframe element will create an inline framework (intra-row framework) that contains another document ). So we can use the iframe label to embed another page in one page. This requirement can be achieved by specifying the
Today's excellent front-end tutorials bring you a set of flat-style 3D progress button styles, with the buttons themselves serving as a progress indicator. 3D styles are used to display j progress on one side of a button. It should be noted that
Today, in the project, I encountered a problem that the link in ie6 and browser 7 failed. I found a perfect solution by querying a large amount of information, as shown below:
Solution:
Add a style {* background: url (#); * zoom: 1;} to the tag ;}
koala(Win/Mac/Linux)
LESSCSS/SASS compilation tool developed by Chinese people. : Http://koala-app.com/index-zh.html
Codekit(Mac)A tool that automatically compiles Less/Sass/Stylus/CoffeeScript/Jade/Haml, including additional functions such as
In the current browser, there is a very interesting function, you can modify the browser URL without refreshing the new page; In the browsing process. you can store the browsing history. When you click the back button in the browser, you can obtain
Today, my colleague officially asked me two questions about jquery, and I have to answer them officially. By the way, I posted the source code here to help my friends:Copy codeThe Code is as follows: Question 1:Why is the index
1. Hammer. jsHammer. js is a lightweight JavaScript framework widely used. It provides specifications for common touch operations, such as shrinking, drag-and-drop, double-clicking, and deletion. It supports most Mobile platforms such as iOS,
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