-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