Heim >Web-Frontend >js-Tutorial >Teil 2 Schnellstart – JS-Grundlagen Praktisches BOM – Browser-Objektmodell, DOM
<!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