删除字符串第一位和最后一位

89 阅读1分钟

删除第一位

str = str.substr(1)

删除最后一位

str = str.substring(0, time[0].length - 1)