首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

tonbeforepaste是什么意思解决方法

2012-03-18 
tonbeforepaste是什么意思tonbeforepaste clipboardData.setData( text ,clipboardData.getData text ).

tonbeforepaste是什么意思
tonbeforepaste= "clipboardData.setData( 'text ',clipboardData.getData 'text ').replace(/[^\d]/g, ' ')) "
请问这段代码是什么意思?

[解决办法]
onbeforepaste而不是tonbeforepaste

onbeforepaste是发生在用户粘贴操作之前
clipboardData是DHTML对象
setData以指定格式clipboardData 对象赋予数据

tonbeforepaste= "clipboardData.setData( 'text ',clipboardData.getData 'text ').replace(/[^\d]/g, ' ')) "的意思就是在发生用户粘贴操作之前,将text中的内容进行过滤

热点排行