摘要:
Number.prototype.formatMoney = function (places, symbol, thousand, decimal) { places = !isNaN(places = Math.abs(places)) ? places : 2; symbol = symbol 阅读全文
摘要:
/^(\-?[1-9]\d{0,14}|0|\-?[1-9]\d{0,11}.\d{2})((\.\d{1,2})?)$/.test( value.toFixed(2) ) /^(\-?[1-9]\d{0,14}|0|\-?[1-9]\d{0,11}.\d{2})((\.\d{1,2})?)$/.t 阅读全文