var c_url=location.href;
console.log(c_url)
var c_selection=c_url.indexOf('selection');
console.log(c_selection)
if(c_selection != -1){
var c_ahref=document.getElementsByClassName("bgimg")[0];
c_ahref.href="javascript:void(0)";
}
转载于:https://www.cnblogs.com/xcbk/p/7649058.html