The amount of money input by the user and the function code output by the Chinese culture. For more information, see. :
Demo:
Script alert (ChangeRMBToCH ("1680760.86"); function ChangeRMBToCH (Num) {for (I = Num. length-1; I> = 0; I --) {Num =
Recently, some readers asked for help, saying that creating an element in iframe and adding it to the parent page won't work in ie6 and ie7, whereas firefox and IE8 can. The Code is as follows:
The Code is as follows:
Var $ alertPanel = $
A self-written jQuery tree control that uses asp.net in the background. In fact, as long as the server returns json, the language can be asp.net (in fact, all of them are the same, as long as the server returns json );
First, we will introduce:
Before talking about this method, we should first understand what the browser will do when inserting nodes. In the browser, once we add the node to document. in the body (or other nodes), the page will update and reflect this change. For a small
This is a good javascript client solution that supports HTML5 local storage. I believe every developer knows the importance of caching. Cache backend (such as memcached and xcache) from the beginning to the end .) To reduce the pressure on the
Some query and filtering functions of jQuery Include filter (), not (), and split (), which makes it easier for jquery to control page elements.
Filter () and not ():
The Code is as follows:
In the first lecture, I have already made an entry-level introduction to JQuery. I believe that all users who have read it should know how to start writing a simple JQuery program. First, a JQuery package needs to be introduced, and then code can be
Previously released code to prevent iframe attacks, so it is easy to refresh the page in Firefox. So I found this article from my website. In the past, this code was used to prevent pages from being used by iframe.
The Code is as follows:
The importance of JQuery should be self-evident for a coder. I was asked how many times when I was applying for JQuery, and how many times I vomited blood when I was writing scripts because of browser incompatibility; the number of times the hand
This article mainly introduces how to delay a function execution in js? Isn't the setTimeout method of the window object used? Bingo, that's right! If you often need to "execute a certain Function with latency" in an application, you can extend the
Today, a small mm asked me to write a pop-up code for him and asked him to set the interval for the pop-up. Obviously, this requires js cookies. The Code is as follows:
The Code is as follows:
A user-level progress bar is made, just a trainer. I am not very familiar with the background, so here we have made a way for users to input parameters themselves to simulate the process of reading parameters from the background.
The Code is as
Iframe extension of jquery. boxy plug-in
The Code is as follows:
/* The w, h, and src attributes remain unchanged for the Boxy attribute.QBox. Close (); Close the current windowQBox. iFSrc ({}); changing the properties of the current window and
UserData was used for music and link-saving projects in the previous section. Now it works well after going online. I will summarize some usage of UserData and share it with you.
Application ScopeUserData is a storage space opened by Microsoft for
Recently I wrote two front-end pages of the management background, one of which is the management background. The left-side menu navigation and the right-side content page are two iframe pages. The requirement is that when you click the leading
JavaScript dynamic sequence comparison code, casually written and played. On the Internet, I saw a lot of writing with VC and VB. This algorithm was previously seen in high school textbooks, I just want to write it in Js. Maybe it's not that
In jquery, attributes must be caused in most cases. Otherwise, it is easy to become a variable name. For example, red. However, it can also be recognized. So it's all about getting used to it. Use $. ajax in jquery
Then, when the ajax attribute is
In Javascript, this keyword usually points to the owner of the current function. In javascript, this owner is usually called the execution context. The execution context of the function depends on the current running environment:
1. Global variables
JqueryAJAX implements the page statistics code. php is used in the background. This article mainly describes the simple implementation of ajax under jquery.
The Code is as follows:
Demo
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