var patt1=new RegExp("\d+(\.\d\d)?");
if(!patt1.test(deduct))
{
alert("应输入货币");
return;
}在js里为什么总是不对,比如输入23.23 ,感觉匹配的都不对,大哥们,帮我看看哪里错了,急!!!在线等