points to a DOM element when using jquery normally. Do not understand this, will often use $ and wrapped again.
(function ($) {
$.fn.myplugin = function () {
//No need to use $ (this)
//$ (this) is the
same as $ ($ (' #element ')) This.fadein (' normal ', function () {
//This here refers to a DOM element
});}
)
(jQuery);
$ (' #element '). Myplugin ();
3, Basic develo
Liferay has two types of services:
1) Internal ServicesLiferay core services, such as portal-impl.jar
2) External ServicesThat is, portal APIs, such as portal-kernel.jar and portal-service.jar
The liferay internal service is updated frequently. Pay special attention to the liferay version upgrade. The liferay external service is quite stable.
EXT development can use the internal service and external service at the same time. The latest trend of lifera
();As you can see from the code above, the development and use of plugins is very simple.Release of PluginsAfter you write the plugin, you can publish it to the official jquery website.First, write a plugin for the information file YourPluginName.jquery.json. The yourpluginname in the file name represents your plug-in name.{ "Name": "Plugin_name", "title": "Pl
′};$.fn.wpaint = function (settings){Settings = $.extend ({}, DefaultSettings, Settings | | {});Return This.each (function (){var Elem = $ (this);Run some code here keleyi.com}}You can notice that the "DefaultSettings" in the code above is completely outside the plugin method, since the code is inside the closure, we don't have to worry about these variables being rewritten.5. Why to set Class prototypingAs your code of blood and Flesh, methods and fu
A Plugin Development PatternRead 107 comments by Mike Alsup
I ' ve been developing jQuery plugins for quite a while now, and I ' ve become rather comfortable with a particular style of P Lugin development for my scripts. This article was meant to share the pattern that I ' ve found especially useful for plugin authorin
JQuery plugin Development (advanced) and jquery Development (advanced)JQuery plug-in Development Mode
In the software development process, a certain design pattern is required to guide the development. With the pattern, we can bet
JQuery plugin Development Guide and jquery Development Guide
First, let's take a simple look at the most orthodox jQuery plug-in definition:
Copy codeThe Code is as follows:(Function ($ ){$. Fn. Plug-in name = function (settings ){// Default parameterVar defaultSettings = {}/* Merge the default parameters and user-defined parameters */Settings = $. extend (defaul
Recently made some study notes in the blog park. One is the official Swift book from Apple, and the other is learning scheme with the school classroom (SICP).Neither of these languages is widely spoken (or swift newness). The original Windows Live Writer code highlighting plugin in the blog Park does not apply to these languages.So I had to find my own way. First I found the highlight.js this JS highlight plugin
Because the work needs, so these days to think about the problem of jquery plug-in development, after a day of battle, finally completed their first jquery plug-ins, for me this see the CSS on the headache of people, a day 8 hours, conservatively estimated 5 hours in the Get CSS ( I am a CSS illiterate level, the description is not appropriate, if the illiterate can not write, only speak, then I am not even speak of the level. Well, cut the crap and c
Original URL: http://www.crazyant.net/1185.htmlEclipse is a very useful IDE, usually we use Eclipse to develop Java programs, in order to develop Python, shell and other scripts can also run on eclipse, there are a lot of related plugins:
Python:pydev
Shell:shelled
Svn:subclipse
Php:pdt
Using the eclipse process can be more search online plug-ins, some can greatly improve the development efficiency, this article in the
The long-awaited Ali Java Development Specification plug-in, finally released in 2017-10-14, this specification plug-in really Java developers must have tools, it is worth a praise.
1. Download and install the plugin
Settings >> Plugins >> Browse repositories ...
2. Restart idea
Tools >> Alibaba Coding Guidelines
3, Code analysis check list
Settings >> inspections >> all-check code Check List
4
There are two types of jquery plugin development:One is the development of a class-level plug-in that adds a new global function to jquery, which is equivalent to adding a method to the jquery class itself. JqueryGlobal functions are functions that belong to the jquery namespace, and the other is an object-level plug-in development that adds a method to a jquery
to jquery via $.extend (), which is then called directly through $. Here you can think that we have completed a simple jquery plugin.
But as you can see, this is a convenient way to define some helper methods. For example, a custom console that outputs a specific format of information, once defined, can be invoked at any point in the program through jquery.
$.extend ({
log:function (message) {
var now = new Date (),
y = now.get
the download process:If there is a problem with the download process, the error is as follows:An error occurred while collecting items to be installed No repository found containing:org.python.pydev/osgi.bundle/1.4.7 .2843 No Repository found containing:org.python.pydev.ast/osgi.bundle/1.4.7.2843Perhaps the reason is that you choose a site mirroring network problems, if this happens, please change a new site to re-perform the above steps.Installing using a ZIP fileThe zip file for the Pydev
There are two types of jquery plugin development:One is the development of a class-level plug-in that adds a new global function to jquery, which is equivalent to adding a method to the jquery class itself. The global function of jquery is a function that belongs to the jquery namespace, and the other is the object-level plug-in development that adds a method to
The most successful part of jquery, I think, is that its extensibility has attracted many developers to develop plug-ins to build an ecosystem. This is like the big companies competing to do the platform, the platform to the world. Apple, Microsoft, Google and other giants, all have their own platform and ecological circle.Learning to use jquery is not difficult, because it's easy to learn, and I'm sure you'll be using or familiar with many of its plugins after you touch jquery. If you want to i
Many of the company's front-end design developers are girls, and many of these girls are not very good at JavaScript skills. And in the front-end development process, JavaScript skills are essential. So, if the front end small mm is worrying about a javascript effect, you chic past, and then said to her: "Hey, beautiful, use this bar." This is a jquery plugin I wrote. "I think basically your life will be so
:
1.jquery.myplugin = {
2.foo:function () {
3.alert (' This is a test '. This is a test. ');
4.},
5.bar:function (param) {
6.alert (' This function takes a parameter, which is ' ' + param + ' ". ');
7.}
8.};
9. A function that takes a namespace is still a global function, and the method used when invoked:
10.$.myplugin.foo ();
11.$.myplugin.bar (' Baz ');
With this technique (using a standalone plug-in name), we can avoid the conflict of functions within the namesp
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.