JS项整理
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
https://www.cnblogs.com/8023-CHD/p/11067141.html
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
(function($){ $.fn.greenify = function(){ // this.css("color", "green"); $(this).css("color", "green"); }; $.fn.extend({ aa:function () { $(this).css("color", "yellow"); } }); })(jQuery); 引用的时候,例如$("#id").greenify ();