1、你通过网银交钱,系统通过移动给你发个短信,那么网上银行和移动系统之间存在一个接口,
我们需要针对接口编程
2、存在就是true,不存在就是false
3、打开窗口:
window.open("http://","statue=no")
4、关闭窗口:
window.clost();
5、窗口加载完毕之后执行
window.onload
window.onload=function (){ alert("加载完毕才执行的方法")}
6、定时器:
setTimeout(参数1,参数2);
参数1:要执行的方法或者语句
参数2:时间间隔(毫秒)
静态:"test()" 动态绑定(不加引号):test
timer=setTimeout() 返回一个定时器对象
clearTimeout(timer) 在到达时间之前清除定时器
clearTimeout(timer) 可以用于设置延时:如淘宝网显示div
7、时间间隔自动调用:
setInterval(test,500) 每隔500毫秒自动调用test方法
clearInterval() 清除
8、history
history.go(-1) 后退一个页面
history.go(1) 前进一个页面
9、location 定位
把网页直接定位到某个页面
location.href="http://www.qq.com"
document.URL="http://www.qq.com"
这两个是完全等效的
10、navigator
浏览器对象
navigator.userAgent 获取浏览器信息,http请求头中有
11、screen
屏幕对象
screen.availwidth浏览器可以的屏幕宽度
screen.availheight浏览器可用的屏幕高度
我们需要针对接口编程
2、存在就是true,不存在就是false
3、打开窗口:
window.open("http://","statue=no")
4、关闭窗口:
window.clost();
5、窗口加载完毕之后执行
window.onload
window.onload=function (){ alert("加载完毕才执行的方法")}
6、定时器:
setTimeout(参数1,参数2);
参数1:要执行的方法或者语句
参数2:时间间隔(毫秒)
静态:"test()" 动态绑定(不加引号):test
timer=setTimeout() 返回一个定时器对象
clearTimeout(timer) 在到达时间之前清除定时器
clearTimeout(timer) 可以用于设置延时:如淘宝网显示div
7、时间间隔自动调用:
setInterval(test,500) 每隔500毫秒自动调用test方法
clearInterval() 清除
8、history
history.go(-1) 后退一个页面
history.go(1) 前进一个页面
9、location 定位
把网页直接定位到某个页面
location.href="http://www.qq.com"
document.URL="http://www.qq.com"
这两个是完全等效的
10、navigator
浏览器对象
navigator.userAgent 获取浏览器信息,http请求头中有
11、screen
屏幕对象
screen.availwidth浏览器可以的屏幕宽度
screen.availheight浏览器可用的屏幕高度
595

被折叠的 条评论
为什么被折叠?



