📅  最后修改于: 2022-03-11 15:03:42.097000             🧑  作者: Mango
jQuery.fn.getElementsByHref = function(str){ return $('a[href*="' + str + '"]'); };
$(document).ready(function(){
elems = $(this).getElementsByHref('example.com');
});