ハッシュ データを含む sharethis を使用して URL を共有するにはどうすればよいですか。
例えば:
http://sitesample.com/#hashdatafrommyapp,3
今、このコードを使用すると:
<script type="text/javascript">var switchTo5x = false;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">
stLight.options({
publisher: "xxxxxxxxxxxxxxxxxxxxxxx",
doNotHash: true,
doNotCopy: true,
hashAddressBar: false,
shorten:false,
url: encodeURIComponent(document.location.href)
});</script>
ハッシュなしで URL を取得します (たとえば、Twitter ボタンを使用して共有する場合)。
関数も試してみましencodeURI()
たが、同じです。