摘要:
u.indexOf(" ") 判断字符串u的中间有没有空字符,没有返回-1,有就返回几个 var width = window.innerWidth 获取浏览器宽度 var height = window.innerHeight 获取浏览器高度 $(window).resize(function() 阅读全文
posted @ 2016-11-25 15:04
哔哩哔哩干杯
阅读(114)
评论(0)
推荐(0)
摘要:
//设置或获取对象指定的文件名或路径。alert(window.location.pathname); //设置或获取整个 URL 为字符串。alert(window.location.href); //设置或获取与 URL 关联的端口号码。alert(window.location.port); 阅读全文
posted @ 2016-11-25 14:40
哔哩哔哩干杯
阅读(883)
评论(0)
推荐(0)

浙公网安备 33010602011771号