开博


开通博客

JQUERY随记

 1    <script type="text/javascript">
 2    <!--
 3        jQuery.fn.extend({
 4            red: function() {
 5                return $(this).css('color''#ff0000');
 6            }

 7        }
);
 8
 9        $('#test').red();
10    //-->
11    </script>
12

 

原文地址:https://www.cnblogs.com/yangjian/p/1547592.html