取出数字
str.match(/\d+\.\d+/g).join('')
取出文本
str.match(/[\u4e00-\u9fa5]/g).join('')
禁止页面被选中
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
取出数字
str.match(/\d+\.\d+/g).join('')
取出文本
str.match(/[\u4e00-\u9fa5]/g).join('')
禁止页面被选中
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;