在网站 head 标签内添加以下代码:
<script> function SocialShare(url) { window.open('https://netquick.site/share?url=' + url, '', 'height=600,width=800'); } </script>
然后在更改要分享到页面的 URL 后放置分享按钮 HTML:
<button onclick="SocialShare('http://yoursite.com/')">Share</button>
您还可以使用此代码共享当前页面:
<button onclick="SocialShare(window.location.href)">Share</button>