ES6 字符串String 方法 lastIndexOf() ES6 字符串String 方法 indexOf() Node.js 写到流 ES6 字符串String 方法 lastIndexOf() var str1 = new String( "This is string one and again string" ); var index = str1.lastIndexOf( "string" ); console.log("lastIndexOf found String :" + index ); index = str1.lastIndexOf( "one" ); console.log("lastIndexOf found String :" + index ); ES6 字符串String 方法 indexOf() Node.js 写到流