3

给博客加入 Google +1 按钮

 3 years ago
source link: https://blog.lilydjwg.me/2011/11/26/add-google-plus-one-button.31006.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

给博客加入 Google +1 按钮

本文来自依云's Blog,转载请注明。

本来我是懒得去做这种东西的,可鉴于以下几个原因,还是弄了一个。

  • Mike 也 +1 了
  • 代码很简单
  • 方便分享到 Google Plus
  • 反正从国内访问本博客也不容易,就不在乎这个 +1 按钮很可能出不来了

代码如下,真的很简单:

Google +1 button
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">{lang: 'zh-CN'}</script>
<g:plusone></g:plusone>

我把它加到了每篇文章的末尾,因为我不认为没看完文章的读者会需要用到它。看不到按钮的读者请自行解决对 Google HTTPS 的访问问题。

发送到 Kindle


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK