To simulate three-dimensional effect in two-dimensional space, we need to convert three-dimensional coordinates into two-dimensional coordinates. A most basic basis is: the farther the thing, see the smaller the size, the more the coordinates to
Yesterday, when using JS to the foreground floating-point number to find that:
0.05+1.08=1.1300000000000001
Check on the Internet there is indeed such a bug, in addition to the number of digits on the control there is no good way (hope that experts
Then, for the type of typeof var!== "number", an attempt is made to convert to a 32-bit shape data, which is converted to Nan if it cannot be converted into a shaping data;
JS in-situ operation with a more convenient way to implement this operation,
$ ("#content"). HTML (data.content);
$ ("#content") [0].innerhtml = Data.content;
Today, I encountered jquery in the HTML method can not use, only to use the most basic innerhtml to show the content. The specific reason has not found,
Recently has been studying the page effect of jquery, just finished one, take out to share with you. The paging effect is similar to the time network.
First, place a
Then build a page.js file, the specific code as follows (JS used in the CSS
1.HTML
HTML (): Gets the HTML content of the first matching element. This function is not available for XML documents. But can be used for XHTML documents
HTML (val): Sets the HTML content for each matching element. This function is not available
The examples in this article describe jquery's actions for elements, including the underlying operations, the selection of elements to be manipulated, and the processing of DOM elements. The study of jquery has a good reference value. Share for
Recently do Baidu map simulation data, need to get a bus line along the site coordinates information, seemingly Baidu does not have ready-made API, so do a simulation page, tools, IE6/7/8 not support
Copy Code code as follows:
From then on, I have done a lot of research on these methods and have used them on many occasions. In many tasks, they are proven to be very useful (especially with regard to the abstract DOM selector of the structure).
1, Domelement.contains
Limited level, do not guarantee that my plan is absolutely correct, if there are errors welcome to point out.
substring method of realizing string by oneself
Method One: Use Charat to remove the interception part
Copy Code code as follows:
ichat is an open source free online customer service jquery plugin, through which you can freely customize your own online customer service code.
ichat fully absorb the advantages of traditional online customer service Plug-ins, and add their own
div fake pagination principle: The total height of the div (1000px) displayed height (100px) After the fill is 10 pages. When the second page is viewed, the div height displayed is between 100-200 and so on.
See the page in the pages actually move
The deferred object is the implementation of jquery's promises interface. It is a common interface for asynchronous operations, and can be seen as a waiting task for developers to set up through a number of interfaces. In fact, it acts as a proxy,
All kinds of problems
Do the low-level interface compatibility, nothing more than using if, to determine the client support which interface problem. The most famous example is the event:
Copy Code code as follows:
var addevent =
Summary:
Before we introduced the use of CSS to implement the arrow with the Tip box, today we come to the point is not the same, this article will share a few arrows with the balloon box.
QtipQtip is an advanced hint plugin based on the jquery
Because my blog is mainly code sharing, a lot of code, are very long. Most of the time I have to hand him the line.
But today I can't stand it. Find a way to solve the problem online.
1, CSS Modification:
In folder:
The example in this article describes the use of jquery for the processing of page elements. Share to everyone for your reference. The specific analysis is as follows:
For the elements of the page, in the DOM programming can be through a variety of
Copy Code code as follows:
1.$ ("Element"). attr (name) gets the first matching property value, such as $ ("img"). attr ("src")
2.$ ("element". attr (Key,value)) ' One element set properties
3.$ ("Element". attr ({key:value,key1:value,..
Dynamic request data to update the page is now a very common method, such as blog comments page dynamic loading, micro-blog scrolling load and timed request loading.
In these cases, the data returned by the dynamic request is generally not a
This article analyzes the difficulty of dragging and dragging in jquery Mobile browser. Share to everyone for your reference. Specifically as follows:
I wanted to implement a control button like the iphone that I could drag on my mobile Web page,
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