In jquery, for example, you can often see the following code
Copy Code code as follows:
(function ($) {
Some code
}) (JQuery)
So you can use $ to replace jquery;
You can write this in MooTools, because in MooTools, $$ represents a
Description: MooTools defines an event class that provides an extension of event object events for the original window, and can be used to pass the original event object as the constructor parameter of the event:
Var event=new event (event);
In
Ajax can be implemented by Directly Writing the source code, but it is a little complicated. Currently, popular ajax frameworks integrate ajax functions and are easy to write. Of course, mootools is no exception. Mootools is a very good javascript
MooTools is a concise, modular, object-oriented JavaScript framework. It can help you write more extensible and compatible JavaScript code faster and more easily.MooTools has drawn many useful design ideas from prototype.js, and the syntax is very
We have learned how to select DOM elements, how to create arrays, how to create functions, and how to add events to elements. Today, let's take a deeper look at how to manipulate HTML elements. With MooTools 1.2, you can add new elements to an HTML
Welcome to the seventh lecture of this series of tutorials. Today, let's take a look at how to operate styles through MooTools 1.2 and the content we 've talked about earlier. This will give you great control over the UI. Processing style is very
Simply put, a class is a container that contains a set of variables and functions that manipulate them to achieve specific functionality. Classes can be incredibly useful in a project with more content involved.
Variable
In the previous series of
A timer can do more than it looks--timing can trigger a function periodically. Hash, on the other hand, is a collection of key-value pairs (key/value). If you're not familiar with the hash, don't worry now-we'll do a quick and brief introduction
MooTools is a good JavaScript framework, it is simple, modular, easy to use, developers can quickly start to write scalable, compatible with good JavaScript code. I used this for two days, feeling and prototype usage is exactly the same, but the
We often use some alias methods to use our favorite js library. For more information about javascript, see. For example, the following code is often seen in jQuery.
The Code is as follows:
(Function ($ ){// Some code}) (JQuery)
In this way,
In today's tutorial, we will focus on two parts: the first one is. periodical (); method, and then we will make an introduction to hash. A timer can do more things than it looks like-it can trigger a function regularly. On the other hand, hash is a
Until now, initialization of these MooTools plug-in objects has become increasingly familiar. The scroll bar (Slider) is no different. You need to create a new scroll bar, define the elements related to the scroll bar and the Slider, set your
1, selectors.$ ("id"): ID selector, select only the ID name element, when selected, do not write the id name prefix "#";$$ ("*"): Mixed selector, applicable to all elements, usage is very similar to jquery.2, Dom is ready./* The following is
MooTools is a concise, modular, object-oriented JavaScript framework. It can help you write more extensible and compatible JavaScript code faster and more easily.MooTools has drawn many useful design ideas from prototype.js, and the syntax is very
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
Transferred from: http://www.cnblogs.com/see7di/archive/2012/10/09/2716024.htmlIn retrospect, I have not written something for a long time, especially about the mootools aspect of things, so today wrote a title flashing plug-in, practicing practiced
// Mootools// Auditflag = $ (this). getelement ('> TD input [ID = "auditflag"]'). Val ()//. Getparent () // obtain the parent element of an element.//. Setstyle ('background-color', '#123321') getstyle ()// You can add a selector ('width', 'height'
Document directory
Learn more
If you are not familiar with how to use regular expressions (regular expression (regex), I strongly recommend that you take some time to look at some links in this article, especially the link to the "more
In the future, we will introduce the basic knowledge of regular expressions and their usage in MooTools.Before getting started, I 'd like to take a moment to see how string functions are called. In my example, I directly call this method on the
If you are not familiar with how to use regular expressions (regular expression (regex), I strongly recommend that you take some time to look at some links in this article, especially the link to the "more learning" section at the end of the article.
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.