startsWith()

if(a.startsWith(b))   
//判断字符串a 是不是以字符串b开头.
原文地址:https://www.cnblogs.com/songxxu/p/3298234.html