用加一个判断如果是QQ微信访问的则显示这行代码如果不是QQ微信访问则隐藏a href=httpwpaqqcommsgrdv=3&uin=1159114746&site=qq&menu=yesbutton id=next购买视频buttona
<script>
if(/MicroMessenger|QQ/.test(navigator.userAgent)){
document.write('<a href="http://wpa.qq.com/msgrd?v=3&uin=1159114746&site=qq&menu=yes"><button id="next">购买视频</button></a>');
} else {
document.getElementById("next").style.display = "none";
}
</script>
原文地址: https://www.cveoy.top/t/topic/b9xw 著作权归作者所有。请勿转载和采集!