记录一下

slice可操作数组和字符串,但substring和substr只能操作字符串,splice只能操作数组

 

substring(start,stop)

substr(start,length)

slice(start,stop)

splice(start,length,items)

 

转载 https://www.cnblogs.com/echolun/p/7646025.html

转载 https://blog.csdn.net/qq_44352182/article/details/89889778