startsWith()

if(a.startsWith(b))   
//判断字符串a 是不是以字符串b开头.

 

posted @ 2013-09-03 10:35  心绪如泥  阅读(156)  评论(0编辑  收藏  举报