JS menambahkan seperseribu tes,
<skrip bahasa = "javascript" type = "text/javascript"> function comdify (n) {var re = // d {1,3} (? = (/d {3})+$)/g; var n1 = n.replace (/^(/d+) ((/./ d+)?) $/, function (s, s1, s2) {return s1.replace (re, "$ &,")+s2;}); return n1;} </script> <input type = "text" value = "121213345.78" onsblur = "this.value = comdify (this.value)">Kode implementasi JS di atas (super sederhana) adalah seluruh konten yang saya bagikan dengan Anda. Saya harap ini dapat memberi Anda referensi dan saya harap Anda dapat mendukung wulin.com lebih lanjut.