方法一:
str.charAt(str.length - 1)
方法二:
方法三: var str = "123456"; spstr = str.split(""); spstr[spstr.length-1];