摘要:
分享自己写的一个小插件,不过需要的时候也有用。/** jQuery小插件,移除链接*/(function ($) { $.fn.removeLink = function () { return this.each(function () { var text = $(this).html(); $(this).after(text); $(this).remove(); }); }})(jQuery);使用方法如下:$(function () { $("a").removeLink... 阅读全文