【发布时间】:2019-12-09 22:39:46
【问题描述】:
我想制作一个分享按钮来分享我的blogger博客中的引语。
例如
<blockquote>"Imagination is more important than knowledge."
--Albert Einstein</blockquote>
<share_button>
<blockquote>"Life is a preparation for the future; and the best preparation for the future is to live as if there were none."
--Albert Einstein</blockquote>
<share_button>
当访问者点击任何引用的分享按钮时,相关引用与post URL可以根据访问者的选择分享到任何应用程序> 使用默认 Android 的共享应用列表。
编辑:- 我的博客仅基于 Quotes 主题。每个帖子都有很多引用,我想在每个引用之后使用一个分享按钮,这样人们就可以分享他们想要的任何引用。 如何在不为每个按钮和引号创建唯一 ID 的情况下做到这一点?
<blockquote>"Imagination is more important than knowledge."
--Albert Einstein</blockquote>
<button class="shareBtn">Share Blockquote</button>
<blockquote>"Life is a preparation for the future and the best preparation for the future is to live as if there were none."
--Albert Einstein</blockquote>
<button class="shareBtn">Share Blockquote</button>
<blockquote>"Remember not only to say the right thing in the right place, but far more difficult still, to leave unsaid the wrong thing at the tempting moment."
--Benjamin Franklin</blockquote>
<button class="shareBtn">Share Blockquote</button>
<blockquote>"You don't have to hold a position in order to be a leader."
--Henry Ford</blockquote>
<button class="shareBtn">Share Blockquote</button>
【问题讨论】:
标签: javascript share blogger android-sharing