function chkPrice(obj){
= (/[^\d.]/g,"");
//The first digit must be guaranteed to be the number instead.
= (/^\./g,"");
//Certificate that only one appears, but no more.
= (/\.{2,}/g,".");
//Please guarantee. It only appears once, but not more than twice
= (".","$#$").replace(/\./g,"").replace("$#$",".");
}
function chkLast(obj){
// If illegal characters appear, intercept them
if((( - 1), 1) == '.')
= (0,( - 1));
}