当前位置: 代码迷 >> ASP >> tonbeforepaste是什么意思解决方法
  详细解决方案

tonbeforepaste是什么意思解决方法

热度:10   发布时间:2012-03-18 13:55:39.0
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中的内容进行过滤
  相关解决方案