js 判断字符串是否以某字符串开始

var str = '123456789';
str.startWith('12345');//true

猜你喜欢

转载自blog.csdn.net/supertree_l/article/details/81699389
今日推荐