【问题标题】:Google+ share link with "%20" not workingGoogle+ 与“%20”的共享链接不起作用
【发布时间】:2016-01-26 03:49:37
【问题描述】:
<a href="https://plus.google.com/share?url=https://www.utp.edu.my/The%20University/SitePages/Home.aspx" target="_blank" class="share-btn google-plus">
    google share
</a>

无法正确读取url链接:

【问题讨论】:

    标签: google-plus share


    【解决方案1】:

    正如documentation 建议的那样,URL 需要进行 url 编码。所以你的 URL 看起来像:https%3A%2F%2Fwww.utp.edu.my%2FThe%2520University%2FSitePages%2FHome.aspx

    然后您的链接将如下所示:

    <a href="https://plus.google.com/share?url=https%3A%2F%2Fwww.utp.edu.my%2FThe%2520University%2FSitePages%2FHome.aspx" target="_blank" class="share-btn google-plus">
        google share
    </a>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多