var cashpledge=$("#cashpledge").val(); var reg = /^\+?(?!0+(\.00?)?$)\d+(\.\d\d?)?$/; var r = cashpledge.match(reg); if (r == null) { alert('对不起,只能输入价格'); } else { window.location.href="__SELF__/cashpledge/"+cashpledge; }
添加回答
举报
0/150
提交
取消