Code that can be used directly: the cloud-dwelling Community revised edition
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Here is the advanced tutorials and instructions, like
However, in a cross-browser test, a problem was found in the Chrome browser, the tester found (see Figure 1) that in chrome, when sorted by a column, when the two rows were sorted in the same value, Chrome did not keep the two columns in the usual
When the visibility is set to "hidden", the element is hidden, but it still occupies its original position.
---------------------------------------------------------------
Example:
Copy Code code as follows:
The first line of
The basic question is simple. Suppose one of your elements is contained in another element.
Copy Code code as follows:
-----------------------------------
| element1 |
| ------------------------- |
| |element2 | |
| ----------
The first piece of code is to emphasize this usage, I used a switch in my project, later I found that this kind of code is ugly, so I wrote | | && form, and later, when testing performance, found that performance was on a level of magnitude, it can
1, the transfer of parameters need to use encodeuricomponent, so that the combination of the URL will not be # and other special characters truncated.
For example:
2, the URL jump can be used as a whole encodeURI
For example:
Local objects
①array class
②date class
object's type Built-in object
①global objects
②math objects
Host Object
Today continue to learn the object in JS, yesterday learned the two important objects in the local object array and date. Look at the
Getelementsbyclassname ()
To find our tree menu (perhaps multiple) from a large stack of HTML code, we first implement a way to find a DOM node through classname: Getelementsbyclassname. This is a simple but practical extension of the browser's own
Error mode: syntax error warning
Copy Code code as follows:
function () {
Insert code here
}();
Mode one: function literal (functions Literal)
Declare the function object first, and then execute.
Copy Code code as
222222 www.jb51.net Baidu www.baidu.com ;td> Server Software s.jb51.net //Use array to get table value function Getrowtext () {var arr = new Array ();
var count = 0;
for (var i=0;i
[Ctrl + A All SELECT Note:
jquery is shaped like $ ("#txtName"). AddClass ("Err"). CSS ("Font-size", "12px"). Select (). focus (); the way people have to be fascinated. Its implementation mechanism is chained call. A chained call is a method of calling an object to return to
1. It is named after Java, but not Java
It was originally called Mocha, then renamed to LiveScript, and finally decided to name JavaScript, according to historical records, Java's name and the cooperation between Netscape and Sun, in Exchange,
But they have a lot of add-ons and no need, and there is no need for such a functional area to reference this library, for speed to consider it, of course, your server is OK, but in fact this effect is not necessary, but feel will be used, so it is
True: Completely copy a node, what is called complete, is to copy everything, including his child nodes, so that text nodes, all of which are cloned, the so-called complete
False: Clones only the current node, does not clone any child nodes, and of
Usually open a new window using a window.open method.
To get the control of the parent window, you can use Window.opener to get the parent window
However, if you use ShowModalDialog ... is not valid
If necessary, you need to modify the open syntax
It is worth noting that
var user = eval (RESULT.D) when incoming is a JSON type;
Eval ("exception =" +result.responsetext) when incoming is a string;
Copy Code code as follows:
$.ajax
(
{
Type: "POST",
ContentType: "Application/json"
first, no prompts to refresh the Web page
We have not found that some pages, refresh, will pop up a prompt window, click "OK" will refresh. And some pages do not prompt, not pop-up prompts the window, directly on the refresh. If the page does not
So, the Internet to find a bit, with another way of writing settimeout ("fun (" + parameter +) ", 1000), or not, but the above wording in the Transfer form form of the textarea is possible, such as HML is this:
Copy Code code as follows:
1. First write two most commonly used the most concise scroll code
The code is as follows:
Horizontal scrolling:
Horizontal scrolling marquee content
Vertical scrolling:
Vertical scrolling Word content
2. Smooth continuous rolling
Copy
Main function Code:
Copy Code code as follows:
function Chinese (num)
{
if (!/^\d* (\.\d*) $/.test (num))
{
Alert ("You are not entering a number, please re-enter!");
return false;
}
var AA = new Array ("0", "one", "II", "three", "
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.