(1)变量名.substring(startposition,stop如果取到结为可省去)提取字符串。变量名.substr()提取指定数目的字符(2)math对象PI圆周率,LN2返回2的自然对数Math.ceil()向上取整,Math.floor()向下取整。四舍五入Math.round()Math.random()返回0到1 之间 的随机数。