$.fn.myFunction = function() { return $(this).addClass('changed'); } $('.changePlease').myFunction();//用法//该片段来自于http://www.codesnippet.cn/detail/060920135673.html
来源: http://www.codesnippet.cn/detail/060920135673.html