标签: js substring
thumbnail

js substring方法怎么使用

substring() 方法用于提取字符串中指定位置的子字符串。 这个方法有两种使用方式: 1. 使用起始索引和结束索引: substring(startIndex, endIndex)   &n……