-1
我在Facebook上尝试自动共享地址栏+ GOOGLEPLUS分享(fb,gplus),来自浏览器地址栏的网址?
我的HTML + JS代码:
<a class="facebook" target="_blank" href="">Facebook</a>
<a class="googleplus" target="_blank" href="">Google+</a>
<script>
document.getElementById("facebook").href = "http://www.facebook.com/sharer.php?u=" + window.location.href;
document.getElementById("googleplus").href = "http://plus.google.com/u/0/share?url=" + window.location.href;
</script>
空结果
哪能修复这个空结果,
id或class?不要混淆 – Manav