【文件属性】:
文件名称:jQuery.nice:用于创建 jQuery 插件的 jQuery 助手
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-09 19:22:36
JavaScript
jQuery.nice
用于创建 jQuery 插件的 jQuery 助手。
简单的插件
创建插件核心:
( function ( $ ) {
var NICE_PLUGIN = 'SayHello' ;
if ( ! $ . nice . createPlugin ) {
throw new Error ( 'jQuery.nice.' + NICE_PLUGIN + ' require jQuery.nice core.' ) ;
}
var plugin = $ . nice . createPlugin ( NICE_PLUGIN , '0.1.0' ) ;
plugin . options = { // default options
textHe
【文件预览】:
jQuery.nice-master
----test.html(2KB)
----src()
--------nice.min.js(2KB)
--------nice.js(4KB)
----LICENSE(1KB)
----README.md(4KB)