js检测复制、粘贴与剪切操作
来源:网络 作者:佚名 点击:
次时间:2017-08-07 22:14
[摘要] 利用jQuery,大家可以非常轻松地检测到选定元素的复制、粘贴与剪切操作。
利用jQuery,大家可以非常轻松地检测到选定元素的复制、粘贴与剪切操作。
- $("#textA").bind('copy', function() {
-
- $('span').text('copy behaviour detected!')
-
- });
-
- $("#textA").bind('paste', function() {
-
- $('span').text('paste behaviour detected!')
-
- });
-
- $("#textA").bind('cut', function() {
-
- $('span').text('cut behaviour detected!')
-
- });
|
------分隔线----------------------------