一些js小知识点整理

string.substring(a,b)   从a点开始截取,到b点结束

string.substr(a,b)    从a点开始截取,截取b个

BOM的四个对象,navigator、screen、location、history

原文地址:https://www.cnblogs.com/yk-ontheway/p/5861825.html