您的位置:首页 > 其它

Bom window

2016-03-01 15:09 316 查看
<html>
<head>
<title>Frameset Example</title>
</head>
<frameset rows="160,*">
<frame src="frame.htm" name="topFrame">
<frameset cols="50%,50%">
<frame src="anotherframe.htm" name="leftFrame">
<frame src="yetanotherframe.htm" name="rightFrame">
</frameset>
</frameset>
</html>




<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script>
/**直接通过var声明的全局变量和window声明的全局变量的区别**/
var age=12;
window.zyn="loca";
delete age;//返回false
delete zyn;//返回true
//console.log(age);//12 不可以可以通过delete删除
//console.log(zyn);//undefined 可以可以通过delete删除

//显示“打印”对话框
window.print();
//显示“查找”对话框
window.find();
</script>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: