string.substring(a,b) 从a点开始截取,到b点结束
string.substr(a,b) 从a点开始截取,截取b个
BOM的四个对象,navigator、screen、location、history