文章分类 -  js

摘要:https://blog.csdn.net/qq_23853743/article/details/106757787 阅读全文
posted @ 2022-03-31 12:08 `安安安安安 阅读(7) 评论(0) 推荐(0)
摘要:func(p1, p2) obj.child.method(p1, p2) func.call(context, p1, p2) // 先不讲 apply func(p1, p2) 等价于 func.call(undefined, p1, p2) obj.child.method(p1, p2) 等 阅读全文
posted @ 2022-03-21 01:45 `安安安安安 阅读(19) 评论(0) 推荐(0)
摘要:方法1:通过HTML标签绑定 方法2:通过元素绑定 阅读全文
posted @ 2022-03-16 15:18 `安安安安安 阅读(7) 评论(0) 推荐(0)
摘要:用DOM控制元素 Element.innerHtml 元素内容; Element.style 元素样式 阅读全文
posted @ 2022-03-16 15:06 `安安安安安 阅读(5) 评论(0) 推荐(0)
摘要:核心DOM XML DOM HTML DOM 阅读全文
posted @ 2022-03-16 14:46 `安安安安安 阅读(11) 评论(0) 推荐(0)
摘要:var object={ 属性1:值 属性2:值 属性3:值 ...... 函数名1:funcion(参1,参2,...){ } 函数名2:funcion(参1,参2,...){ } ...... } 阅读全文
posted @ 2022-03-14 10:43 `安安安安安 阅读(10) 评论(0) 推荐(0)
摘要:定义方法1: function hanshuming(参1,参2,...){ } 注意: ①参数可以不写类型; ②返回值不写类型; ③调用时参数可以不写全。 定义方法2: var f=function(参1,参2,...){ } 阅读全文
posted @ 2022-03-14 10:30 `安安安安安 阅读(13) 评论(0) 推荐(0)
摘要:string number null undefined boolean 其中null和undefined都是代表“空”对象,即: alert(null==undefined) ==> true 阅读全文
posted @ 2022-03-14 10:12 `安安安安安 阅读(36) 评论(0) 推荐(0)
摘要:var: 定义全局变量; 可重复定义。 let: 变量只在所在域生效; 不可重复定义。 阅读全文
posted @ 2022-03-14 09:57 `安安安安安 阅读(35) 评论(0) 推荐(0)