jq 插件编写 待
来源:互联网 发布:游戏厅捕鱼程序员 编辑:程序博客网 时间:2024/05/02 00:33
<script src="jquery.js" type="text/javascript"></script> <script type="text/javascript">;(function($){//全部方法写这里var method={init : function( options ) {//this.text(options.name);}, hide : function( ) { this.text(options.name);}}$.fn.yybox=function(){// 添加yybox 插件// Method calling logic if ( method[method] ) {return method[ method ].apply( this, Array.prototype.slice.call( arguments, 1 )); } else if ( typeof method === 'object' || ! method ) {return method.init.apply( this, arguments ); } else {$.error( 'Method ' + method + ' does not exist on jQuery.tooltip' ); }}})(jQuery);////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////$(function(){$("#id1").on("click",function(){$("#id1").yybox({name:'520'})})})</script><div class="a" id="id1">red</div><div style="color:#blue; ">blue</div><div style="color:#green; ">green</div><div style="color:#yellow; ">yellow</div>
0 0
- jq 插件编写 待
- jQ 编写插件
- jq编写轮播插件
- 实战编写jq插件轮播图
- 【前端】jq插件的编写
- jq插件的编写方法(自定义jq插件)
- [jq] 最终确定的jq插件结构编写
- 2017/8/13 jq编写插件方法
- JQ插件
- jq插件
- web批量打印分享,注意也许不成熟,待大批量测试(不使用插件,纯jq,css)
- jq插件的编写中(jquery.extend、jquery.fn与jquery.fn.extend的使用区别)
- JQ滚动插件
- JQ 上传插件
- jq小插件tiptip
- jq遮罩层插件
- JQ 倒计时插件
- JQ插件写法二
- 网页favicon.ico图标设置
- 无法解析的符号错误
- 【算法】Fractional Multiscale Processing
- Perl自动生成Android Activity的Java文件
- Oracle归档日志删除
- jq 插件编写 待
- 使用LINQ读取分隔符文本文件
- android Mediaplayer用法
- 语音增强——谱减
- Linux监控命令全覆盖
- Hello, FreeSWITCH(2)初识 FreeSWITCH
- 答疑:C语言和框架
- 新建中文名安卓项目
- SQLCODE和SQLERRM