ES6 字符串String 方法 localeCompare() Node.js 写到流 ES6 example1 字符串String 方法 replace() ES6 字符串String 方法 localeCompare() var str1 = new String( "This is beautiful string" ); var index = str1.localeCompare( "This is beautiful string"); console.log("localeCompare first :" + index ); Node.js 写到流 ES6 example1 字符串String 方法 replace()