목차
2부 빠른 시작 - JS 기초 실용적인 BOM - 브라우저 개체 모델, DOM
BOM: js가 액세스할 수 있도록 브라우저 창을 개체 모델로 캡슐화합니다. 가장 중요한 개체는 다음과 같습니다. window
<!DOCTYPE html> <html> <head> <title>BOM--浏览器对象模型</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script type="text/javascript"> function resizeWindow(){ window.resizeTo(500, 300) } </script> <!--<link rel="stylesheet" type="text/css" href="./styles.css">--> </head> <body> <pre class="brush:php;toolbar:false"> BOM:把浏览器窗口封装成对象模型,供js进行访问。最重要的一个对象是:window
window中的属性演示
前进