复制,剪切和粘贴事件在Opera中不起作用 [英] copy, cut and paste events not working in Opera

查看:120
本文介绍了复制,剪切和粘贴事件在Opera中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么jQuery .bind()对于cut copy paste事件在歌剧中不起作用?

Why jquery .bind() not working in opera for cut copy paste events?

$(document).ready(function(){
  $('#txtInput').bind("cut copy paste",function(e) {
      e.preventDefault();
  });
});

推荐答案

[更新] 据我所知,Opera实现了剪贴板API,版本为12.10,尽管已在其渲染中实现.引擎运行了一段时间(Presto/2.10.292).

[Update] Opera implemented the Clipboard API in version 12.10 as far as I can tell, although it has been implemented in their Rendering Engine for quite some time (Presto/2.10.292).

此问题与jQuery的bind函数无关,而是与Opera在12.10版之前不支持剪切,复制和粘贴事件的事实有关.

This issue is not related to jQuery's bind function but rather to the fact that Opera didn't support cut, copy and paste events before version 12.10.

这篇关于复制,剪切和粘贴事件在Opera中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆