检查字符串是否以指定的前缀开头
要检查的字符串
前缀字符串
如果字符串以指定的前缀开头则返回true,否则返回false
startsWith('userService', 'user') // true Copy
startsWith('userService', 'user') // true
startsWith('userController', 'admin') // false Copy
startsWith('userController', 'admin') // false
检查字符串是否以指定的前缀开头