方法:1、在input标签中添加“oninput="value=value.toString().match(^d+(?:.d{0,2})?)"”语句即可。2、给input标签绑定onimput事件,在处理函数