将内容附加到书签生成的 url
appending something to a bookmarklet-generated url
我正在使用小书签 post URL 到我的 known 安装。
javascript:(function(){window.open('http://xyz/known/share?share_url='+encodeURIComponent(location.href)+'&share_title\='+encodeURIComponent(document.title));})();
本returns URL:
我想要
&share_type=bookmark
追加到 url,但由于我不理解 JavaScript,未能理解。
你可以试试这个:
javascript:(function(){window.open('http://xyz/known/share?share_url='+encodeURIComponent(location.href)+'&share_title\='+encodeURIComponent(document.title) + '&share_type=bookmark');})();
我正在使用小书签 post URL 到我的 known 安装。
javascript:(function(){window.open('http://xyz/known/share?share_url='+encodeURIComponent(location.href)+'&share_title\='+encodeURIComponent(document.title));})();
本returns URL:
我想要
&share_type=bookmark
追加到 url,但由于我不理解 JavaScript,未能理解。
你可以试试这个:
javascript:(function(){window.open('http://xyz/known/share?share_url='+encodeURIComponent(location.href)+'&share_title\='+encodeURIComponent(document.title) + '&share_type=bookmark');})();