方法1. 正則表示式判斷. js程式碼: function thousandBitSeparator(num) { return num && (num.toString().indexOf('.') != -1 ? num.
確定! 回上一頁