Open powerdong opened 4 years ago
var str="xi nAn shi you xUe yuan china people" console.log( str.replace(/[a-z]/g,function($1){ return $1.toLocaleUpperCase() }) )