03 2022 档案
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> #div1{ background-color: blueviolet; height: 100px; width
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <p>this is p</p> <button type="button" id="btn1">btn1</button> <bu
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script > // JSON用途和web服务器进行数据传输 // 数据类型不能为函数 日期 undefined var tex
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <p class="p1">p1</p> <p>p2</p> <script type="text/javascript" src=
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title id="tit">node</title> </head> <body id="b"> <!-- title的子节点为文本节点:Node h1和p为同胞 --> <h1 id="h
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <p id="p1">here</p> <div id="div1"> <p id="p2"> div+p+bubbing; </p
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body onload="checkCook()"> <h1 id="h1" onclick="this.innerHTML='Hello'">
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> #container{ width: 400px; height: 400px; position: relative; background:
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <form name="myForm" action="" method="post" onsubmit="return dateF
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <p id="p1"> Here is a p </p> <p class="p2"> p2 frist </p> <p class
阅读全文
摘要:当网页被加载时,浏览器会创建页面的文档对象模型(Document Object Model)。 ##对象的 HTML DOM 树 DOM 是一项 W3C (World Wide Web Consortium) 标准。 DOM 定义了访问文档的标准: “W3C 文档对象模型(DOM)是中立于平台和语言
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script > //函数回调 function Display(some){ console.log(some); } func
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script > class Car{ constructor(name,year) { this.name=name; this
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script > //参数无需声明 调用时少了参数自动默认undefined function myFunction(x,y){
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script > var person={ name:"str", age:18, fullName:function(){ re
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script> //向上舍入 console.log(Math.ceil(6.4)); //向下 console.log(Math
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script> var d=new Date(); // 7个数字分别指定年、月、日、小时、分钟、秒和毫秒(按此顺序) // 参数
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script> var arr=[ "str", "pop", "lwx" ]; // 避免使用 var cars=new Arr
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script > var x=12345.6789; x.toString(); //返回字符串值, //它包含已被四舍五入并使用
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script > //转义字符 \' \" \\ var str="string"; //方法 console.log(str.l
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <script > //作用域 { var x=10; } console.log(x);//x可以访问到 { let y=10;
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <p id="p1"> </p> <!-- 事件 onchange HTML 元素已被改变 onclick 用户点击了 HTML 元
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_form_tables.css"/> </head> <body
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Ic
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_font.css"/> </head> <body> <div
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_font.css"/> </head> <body> <h1>这
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_outline.css"/> </head> <body> <!
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_margin.css"/> </head> <body> <p
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_border.css"/> </head> <body> <di
阅读全文