首页 > 技术文章 > 去掉字符串中的第一个字符

150536FBB 2020-04-09 14:55 原文

var str = "/helloworld";
str = str.substr(1);  //helloworld

 

推荐阅读