Brook is a Javascript framework for large-scale web development, rather than a tool set. Brook cited the pipe concept in UNIX to easily concatenate all the processes to complete the task together. The output of the previous processing is used as the
An ajaxjsonp written in the project the day before yesterday has a problem: the request result can be obtained successfully, however, if the success method is not executed, the error method is directly executed, indicating an error -- ajax jsonp has
Not to mention, the implementation principle is mainly to process the table and generate trtd. The most important thing is how to find the day of the week on the first day of each month, and then correspond to the remaining days of the month. first
For more information about json2.js, see. A preliminary study and understanding of json2.js
1) The js is: http://www.json.org/json2.js
2) reference the script on the page:
Frequently right-click menu operations are required in recent projects. I used the contextMenu jQuery plug-in. In the following scenario, we will design a table grid that needs to be right-clicked, added, deleted, and saved on each row. Grid I used
The Code previously written is centered in the current window, but once the window is scaled down or enlarged, it is not centered. However, I always want to write a result similar to the alert pop-up window. The principle is simple:
Obtain the width
Anyone who has been familiar with the relevant knowledge knows that when dynamically adding Javascript script tags to the DOM, different expressions may occur in various browsers. Here we will only discuss browsing that supports parallel downloads.
I believe everyone has been on Youku. When you are watching a video, you want to see the comments below the video. After clicking the comments on page 2nd, the whole page is refreshed, the video is played from the beginning, and it is believed that
I usually use a lot of tab functions. There are powerful tab functions on the Internet, but many times it is too complicated. So I wrote the simplest jquery plug-in. The Code is as follows, I will not explain it.
The Code is as follows:
/**
What is asynchronous or Ajax. let's not talk about XMLHTTPRequest. in general, Asynchronization means that javascript on the front page can call the background method. in this way, there is no refresh. the so-called Ajax. here we will talk about two
A few short jquery codes implement an image scroll up switch. For more information, see. Description of the animate () parameter:
The animate () method executes the Custom Animation of the CSS property set.
This method uses the CSS style to change
The method used in the previous example is simple and convenient, but it does not completely separate js from the page structure. That is to say, js depends on class. The following uses validate () the verification rules for parameter settings of
Jquery searches for the implementation code of the iframe parent page element. For details about jquery, refer. Parent Page code
The Code is as follows:
Untitled document
Iframe Page code
The Code is as follows:
I accidentally discovered this plug-in today. I would like to share with you that the functions and styles are both powerful and convenient to call. In addition, the plug-in supports screen locking. The plug-ins are as follows, for more effects and
In IE6 and IE7, setAttribute does not support descriptions of attributes such as classforrowspancolspan. For more information, see. For example, set the class attribute.
The Code is as follows:
El. setAttribute ('class', 'abc ');
In IE6/7, the
Inadvertently saw this plug-in the blog, it attracted me, so I found some information on the Internet to practice the official Demo address: http://www.trirand.com/blog/jqgrid/jqgrid.html
:
Page code:
The Code is as follows:
Local Data
A small image in a circle is required. The default position of all images to be previewed is this small image. When the scroll wheel is rolled to the position where the source image needs to appear, preview and load it to replace the small image.
Javascript achieves code similar to Google's Div drag effect. For more information, see.
The Code is as follows:
JScript file:// Check the MSIE Firefox browserVar ie = false, moz = false;(Function (){// Check the browserVar userAgent = navigator.
Yesterday, my classmates asked me how to quickly read multi-level xml files. So I used the province, city, and county to simulate a three-level linkage example, the client uses jQuery to asynchronously load the json data returned by the server,
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