JavaScript字符串对象substr方法入门实例(用于截取字符串)