标签:pre tor cti his alert div style var jquery
1.
(function($) { var collapse = { index:function(options){ alert($(this).attr(‘selector‘)); } } $.fn.coo = collapse.index; })(jQuery); $(document).ready(function(){ $("[selector]").each(function(){ if($(this).attr(‘selector‘) == ‘Collapse‘){ $(this).coo(); } }); })
标签:pre tor cti his alert div style var jquery
原文地址:http://www.cnblogs.com/yeyuansheng/p/7392761.html