我正在集成一个按钮,它将在我的项目中启动 Evernote 书签。小书签的代码是:
javascript:(function() {
EN_CLIP_HOST='http://www.evernote.com';
try{
var x=document.createElement('SCRIPT');
x.type='text/javascript';
x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+ (new Date().getTime()/100000);
document.getElementsByTagName('head')[0].appendChild(x);
}catch(e) {
location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);
}
})();
代码通过 HTML 链接上的 onClick 事件调用。我的问题是,当 Evernote 剪辑并保存它时,剥离样式的最佳方法是什么?这样它可读吗?