<input onkeypress="var k=event.keyCode; return (k>=48&&k<=57)||k==46"
onpaste="return !/\D/.test(clipboardData.getData('text'))"
ondragenter="return false" style="ime-mode:disabled">
onpaste="return !/\D/.test(clipboardData.getData('text'))"
ondragenter="return false" style="ime-mode:disabled">
我想要的是把梅老大的东东抽像成一个函数,就不用每次都这样写了啊.直接调用多爽啊..
http://community.csdn.net/Expert/topic/4445/4445142.xml?temp=.4501154
中我的答复