init
This commit is contained in:
32
山东理工大学/其他/前端.md
Normal file
32
山东理工大学/其他/前端.md
Normal file
@@ -0,0 +1,32 @@
|
||||
## BOM broswer
|
||||
|
||||
学习的是window 的属性以及window的API
|
||||
|
||||
```html
|
||||
<button onclick="fun1()">弹窗</button>
|
||||
<button onclick="fun2()">信息框</button>
|
||||
<button onclick="fun3()">确认</button>
|
||||
|
||||
|
||||
<script>
|
||||
function fun1(){
|
||||
window.alert("13eer");
|
||||
}
|
||||
|
||||
function fun2(){
|
||||
var s= window.prompt("输入姓名");
|
||||
console.log(s);
|
||||
}
|
||||
function fun3(){
|
||||
var c= window.confirm("要不要");
|
||||
console.log(c);
|
||||
}
|
||||
```
|
||||
|
||||
## DOM document
|
||||
|
||||

|
||||
|
||||
也有节点
|
||||
|
||||
元素节点就是element 属性节点就是attribute 文本节点就是text
|
||||
Reference in New Issue
Block a user