一、判断最大值和最小值,注:arr为数组
- 最大值:Math.max.apply(null, arr);
- 最小值:Math.min.apply(null, arr);
二、BOM 打开新页面和关闭打开的页面、
- 打开:window.open( );
- 打开指定网站:window.open( ‘地址‘ , ‘打开方式‘ );
- 打开方式:_self 从本页面打开
- 打开方式:_blank 新开一个页面打开
- 关闭:obj.close( );
三、window.location
四、window.location.href
五、window.location.hash
六、window.location.search
dom+bom
原文:http://www.cnblogs.com/pan-hello/p/4562970.html