<html>
<script>
$('#pasteButton').click(function() {
// place code for this button
// ctrl + v shortcut should work for this button
// how?
}
});
</script>
<body>
<input type="button" id="pasteButton" value="Paste" />
</body>
</html>
在此先感谢。同样,我还需要使用按钮从textarea剪切/复制选定的文本。使用jQuery为输入按钮指定快捷键
你寻找它? – 2013-04-09 10:54:15
也许你应该尝试'人工智能'。 – 2013-04-09 10:55:04
首先从点击函数中删除额外的'}'。 – 2013-04-09 10:56:18