Today studied the Yui Yahoo Open source framework, feel very fierce ah.
So I did a Yui ant implementation, online a lot about the implementation of bat, I went to a way, out of this ant implementation, hehe unique article, if reproduced, its
Get around the head a lot of if...else (in fact, define Tocamel and GetStyle two functions)-because the browser's implementation is not uniform, causing such a cumbersome situation, you can talk about the code back.
Below we look at the treasures
Today, the study of Yui Yahoo Open source framework, feel very fierce ah.
So I did a Yui ant implementation, online a lot about the realization of bat, I have a way, out of this ant implementation, hehe unique article, if reproduced, its annotated
The tab switch should be independent of the HTML structure, giving designers and front-end developers the greatest flexibility. Principle: A Tab object is divided into the control section (trigger), the Content section (sheet). When the trigger is
Batch:function (El, method, O, override) {
Let El always be htmlelement
El = (El && (el.tagname | | el.item))? El:y.dom.get (EL);
if (!el | |!method) {
return false;
}
Determines which objects are returned
var scope = (override)? O:window;
Looks
Copy Code code as follows:
@echo off
:: Set YUI compressor start directory
SET yuifolder=d:\yuicompressor-2.4.2\build\
:: Set your JS and CSS root directory, the script will automatically find and compress all JS and CSS at the tree level
First of all, we would like to thank the Yahoo engineers for their selfless dedication to their results--yui (Yahoo! Ui
In fact, this is its own example, I was just familiar with the various interface calls are more convenient
Browse:
Ext. MessageBox tool class introduction, research source code to find more things. Note: 1. Ext. MessageBox is a tool class inherited from the object.
2. In essence, it is only a layer of the current page.
The example is as follows:
The
Learn about YUI. Ext on the seventh day -- about View & amp; JSONView to display a two-dimensional relationship data, we can use the GIRD component. However, in some cases, such as product display and album, we can use the View component to display "
Test instructions: The number of P is not divisible by the n+1 line in the Yang Hui Triangle.Analysis: Using the Lucas theorem, as long as the statistics C (NI, MI) is not 0 of the number can be, because it is the n+1 line, so ni every time, that is,
Dragging and dropping an element, Darg & Drop, is an important feature of windows. How can we implement it in a browser? Let's take a look at the basic example:
Copy codeThe Code is as follows: YAHOO. example. DDApp = function (){
Var dd;
Return
Enter P N to find out how many of the n+1 lines of the Yang Hui triangle cannot be divisible by PLucas theorem:A, B is a non-negative integer and P is a prime number. AB is written in P-system: a=a[n]a[n-1]...a[0],b=b[n]b[n-1]...b[0].The combined
Here, I would like to thank yahoo engineers for selflessly contributing their achievements-yui (yahoo! Ui)In fact, this is an example of its own. I am just familiar with it. It is more convenient to call various interfaces.Browse:
Yui has a layout idea: Grid decision width, content decision height, today discusses the adaptive width of the input box, the first code:
width Adaptive input box
To put it simply, the principle:
In order to have a
/**
* The Config object contains all of the configuration options
* The Yui instance. This object is supplied by the implementer
* When instantiating a Yui instance. Some properties have default
* Values if they are not supplied by the implementer.
Original address of Part-1, Gird component extended by YUI
Article Date: 2006/9/26
The new GIRD supports remote data. Paging and remote sorting settings are easy to understand. I will describe some commonly used custom parameters in this post. The
Gird event mechanism primary reader original address Article Date: 2006/09/25
/
The YUI-EXT of the new version. 32 contains an important upgrade to the GIRD event mechanism. Many new events can be used now, and the mechanism for listening to events
Write in frontWhether it is to do the front-end or do the backstage, whether it is to understand JavaScript or do not understand JavaScript, I would like to have or more or want to know a little bit of JS compression for the effect of page
Foreshadowing: JS is a prototype-based language, which is different from traditional Java-based inheritance, in addition to inheriting the methods of the class itself (actually copying from the parent class), the implementation of JS inheritance
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.