Google+分享链接“%20”无效

时间:2016-01-26 03:49:38

标签: google-plus share

<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>

无法正确读取网址链接:

screenshot

1 个答案:

答案 0 :(得分:0)

正如documentation所示,网址需要进行网址编码。因此,您的网址将如下所示:<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>

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

&#13;
&#13;
{{1}}
&#13;
&#13;
&#13;