JavaScript 剪切内容到Evernote

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JavaScript 剪切内容到Evernote相关的知识,希望对你有一定的参考价值。

<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>Evernote clipping test</title>
	<script type="text/javascript" src="http://static.evernote.com/noteit.js"></script>
</head>
<body>

	<div id="content">
		Site Memory works best when you tell it what to clip. You do this by identifying the ID of the HTML element on your page that contains your content. For example, on this page, content is contained within the element, so we would enter content in the field below.

If you aren't familiar with your site's HTML, don't worry. We are working with leading blogging and site development tools to make adding Evernote Site Memory really simple. Stay tuned.
	</div>
	
	<a href="#" onclick="Evernote.doClip({contentId:'content'}); return false;">
		<img src="http://static.evernote.com/article-clipper.png" alt="Clip to Evernote" />
	</a>
	
</body>
</html>

以上是关于JavaScript 剪切内容到Evernote的主要内容,如果未能解决你的问题,请参考以下文章

javascript 复制内容到剪切板

javascript 复制内容到剪切板

JavaScript如何点击实现复制文字到剪切板呢?

EVERNOTE 的 JAVASCRIPT SDK 问题

javascript笔记(Evernote)

javascript原型链(Evernote)