方法一:
var str = "atynr6"; //要截取的字符串
var index = str.indexOf("n");
var result = str.substr(index + 1,str.length);
console.log(result);
方法二:
var str = "atynr6"; //要截取的字符串
var ret = str.split("n");
console.log(ret[1]);
var str = "atynr6"; //要截取的字符串
var index = str.indexOf("n");
var result = str.substr(index + 1,str.length);
console.log(result);
方法二:
var str = "atynr6"; //要截取的字符串
var ret = str.split("n");
console.log(ret[1]);