Shortcut keys in the daily use is still quite a lot of, for example, familiar paste Ctrl + V, copy Ctrl + C, use shortcut keys to improve our efficiency, especially when we are familiar with an operation, it will become very convenient to use it
idea of a
The first kind of thinking is two-step
The first step: Bind the event handler to the document's Click event so that it hides the div
Step two: Bind the event handler on the div click event, prevent the event bubbling, prevent it from
Current test under: Support ie6+ firefox Google browser and so on.
Let's take a look at the basic configuration items for this component:
Copy Code code as follows:
This.config = {
Targetcls: '. Clickelem ',//click ElementTitle: '
The return value of the ShowModalDialog is available under IE and Firefox, but it returns null below Google Browser, and the following are the solutions
Parent page:
Copy Code code as follows:
function OpenWindows () {
var obj =
For example:
JSON string:var str1 = ' {' name ': ' cxh ', ' sex ': ' Man '} ';JSON object:var str2 = {"Name": "Cxh", "Sex": "Man"};
One, JSON string converted to JSON object
To use the above str1, you must first convert to a JSON object by using
The data that is dynamically output on the page, this is the data that Ajax obtains I want to show on the page
Copy Code code as follows:
Success:function (data) {
var arr = Data.split ('_');
var Numarr = Arr[0].split (",");
var
Requirements: Complete node additions and deletions to copy operations
Methods and properties to use:
1. Get the parent node of a node
ParentNode Property
2. Get a set of child nodes for a node
ChildNodes Property
3. A new node to create a
The table structure of HTML is as follows:
Copy Code code as follows:
class= "TableStyle1" cellspacing= "0" >
Serial number
Part model
part name
Quantity
No tax Price
Tax-included Price
Tax
Payment
Whole
We know that both appendchild and InsertBefore have the ability to insert nodes. But in the application, there are some differences between the two.
For example, if we were to insert a child node p in the following div:
NodeNode
We can write it
3345687687876789123
Convert to: xxx,xxx,xxx
Copy Code code as follows:
The results of the new energy test are:
Copy Code code as follows:
Method overall time consuming: MS
Method two total time consuming: 9 ms
Copy Code code as follows:
It means to control the size of the picture in the specified area, or some large advertising picture will be distorted.
picture control code for cloud-dwelling communities:
Copy Code code as follows:
The tbody innerHTML in IE6-IE9 cannot be assigned a value and the following code is reproduced
Copy Code code as follows:
Tbody innerHTML cannot be duplicated in IE6-IE9 bug
aaa
getSET
JS get the mouse coordinates, get the typical example of the mouse pixel, run this page, move the mouse at will, the location of the mouse can be displayed in due time, do not occupy the system resources.
javascript get mouse coordinates
The NodeName property contains the name of a node.
The nodename of the element node is the label name
The nodename of the attribute node is the property name
The nodename of the text node is always #text
The nodename of the document node is
This is what you do before you make a query on a Web page.
Form get keyword –> incoming back-end SQL statement processing –> data back to front display
Today suddenly to the ctrl+f of the browser how to achieve this function, the data once on the
JS or jquery implementation page printing (local printing)
1, JS implementation (can be achieved local printing)
Copy Code code as follows:
js Printing
where no printing is needed
XXXXX
The content to be
This article describes the implementation of JS Web page countdown digital clock effect. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
javascript implementation of
This article describes the JS implementation of the editable div in the location of the insertion of the content of the method, as we use the editor, shared for everyone to reference. The implementation methods are as follows:
Let div enable edit
So far, we have not distinguished between function declarations and function expressions. In fact, the parser does not treat function declarations and function expressions equally when loading data into the execution environment. The parser takes
The code is very simple no more nonsense, directly to the code:
Copy Code code as follows:
/**
* Implementing the current date is the week ordinal of the year, then forward and backward for a few weeks
* JS Array to save the current
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