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

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