This article introduces two methods and one is to use javascriptonFocusonBlur to determine the focus and the loss of the focus, and the other is to use jquery $ (& quot; p & quot ;). blur (); or $ (& quot; p & quot ;). blur (fn) is implemented. If
How to calibrate the implementation method on the far right of the input box is required by many people. This article will introduce in detail. For more information, see
This scenario is often required during front-end development. Use JS to
It is often said that the anonymous function binding event is difficult to control and cannot be unbound. This article will introduce the detailed solution. If you need it, you can refer to it and often hear someone say, the anonymous function
Image loading is slow, which leads to poor user experience. This article introduces an image pre-loading technology. For more information, see
The Code is as follows:
Js implements the action after the image is pre-loaded.
JSON syntax is a lightweight data exchange format, which is easy to read and write. This article will introduce in detail. For details, refer to JSON syntax, which is a lightweight data exchange format. Easy to read and write. At the same time, it
Basically, all JS data types have the valueOf and toString methods, except null. These two solutions solve the problem of javascript value calculation and display. This article will introduce in detail. If you need them, you can refer to the valueOf
There are more and more ajax requests on the webpage, or the application has been using ajax to exchange data with the backend since the beginning. This article will introduce in detail. For more information, see
What is the problem?
There are more
The project has made a jquery. the validate bubble prompts jquery in the new version. this function is available in validate, but it is not easy to use here, so I added one myself and found some plug-ins with a good style of qtip2, if you need
Json is used for data interaction in the front and back of the project this time. After this time, I will briefly summarize the principles and usage of json, if you need to know about it, you can refer to the json used in the data interaction at the
Jquery encapsulates some ajax request methods, which are very practical. This article will introduce an example to introduce the ajax request methods in jquery in detail, if you need to know more, you can refer to jquery to encapsulate some ajax
Now, let's share with you how the fusionchartsgraphic table in the project displays the dual-yaxis, which is not supported by fcf_msline.swf. Only one Y axis and multiple lines can be displayed,
Find the desired image and use mscombidy2d.swf to
In web, page pop-up is a common interactive method, which can avoid unnecessary page jumps, it can also improve the layout and interactivity of the interface. How can I add a mask layer to the browser window?
Background
In web, page pop-up window
The data storage format of mongodb is because the document structure of MongoDB is BJSON (BJSON Full name: BinaryJSON), and The BJSON format itself supports saving data in binary format, therefore, we can save the binary data of the file directly to
Jquery's ajax () function introduces how to solve Chinese garbled characters by passing values. For more information, see
The Code is as follows:
$. Ajax ({DataType: 'json', type: 'post', url: 'http: // localhost/test. do ', data: {id: 1, type:
Today, I will share with you my own sliding door. I also searched the internet and did not find it better. I wrote it myself ~ It is easy to write. I have encapsulated it as much as possible for ease of use. Okay, let's talk about it in a few
The simplified version implements deep Replication through Json objects. For more information, see the blog's deep replication method for Json objects.
The Code is as follows:
Var obj = {SayName: function (){Alert (this. name );},Name:
Loading animations and progress bars are very popular in websites and Web applications. Although the network speed is getting faster and faster, our website becomes more and more complex, and users' requirements for website use experience are
The replacement parameter of the replace () method can be a function rather than a string. In this case, each match calls this function, and the string it returns will be used as the replacement text. The first parameter of this function is the
JS judges the page loading status and adds the code for masks and buffering animations. paste the Code directly! Annotated
The Code is as follows:
Function initialize (){Addcloud (); // adds a mask to the pageDocument. onreadystatechange =
Today, I chatted with a colleague on the subway and gave me a question. I came back and thought about what I wrote, I used the knowledge of digital reasoning in the field test. Of course, this can be written recursively, and my code and recursive
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.