簡體   English   中英

如何在Google+上分享圖片時刪除網址顯示?

[英]how to remove url display while image share on google+?

 <html> <head> <title>Share Demo: Deferred execution with language code</title> <link rel="canonical" href="http://www.example.com" /> <script src="https://apis.google.com/js/platform.js" async defer></script> </head> <body> <a href="https://plus.google.com/share?url={http://mkainfotech.com/modelstown/public//uploads/model/wall/1439355689990.jpg}" onClick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600',url=no);return false;"> <img src="https://www.gstatic.com/images/icons/gplus-64.png" alt="Share on Google+"/></a> </body> </html> 

 <html> <head> <!-- begin snippet: js hide: false --> 

    <title>Demo: Explicit render of a embedded post</title>
    <link rel="canonical" href="http://www.example.com" />
    <script src="https://apis.google.com/js/platform.js" async defer>
    </script>
    <script>

      function renderWidget() {
        gapi.post.render("widget-div", {'href' : 'https://plus.google.com/109813896768294978296/posts/hdbPtrsqMXQ'} );
      }
    </script>
  </head>
  <body>
    <a href="#" onClick="renderWidget();">Render the embedded post</a>
    <div id="widget-div"></div>
  </body>
</html>

如何在共享圖像時刪除URL鏈接顯示..共享圖像的新代碼仍在共享圖像時顯示鏈接? 如何在共享圖像時刪除URL鏈接顯示..共享圖像的新代碼仍在共享圖像時顯示鏈接? 共享圖像的新代碼仍在共享圖像時顯示鏈接?

您可以使用history.replaceState()history.pushState()來更改當前URL,而無需更改當前頁面。 頁面上查看摘要。 請記住,所有瀏覽器僅支持其中一些API。 在caniuse上查看頁面,以查看支持哪些頁面。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM