摘要:
title: 25-高阶函数 publish: true 高阶函数 高阶函数的概念 当 函数 A 接收函数 B 作为参数,或者把函数 C 作为返回值输出时,我们称 函数 A 为高阶函数。 通俗来说,高阶函数是 对其他函数进行操作 的函数。 高阶函数举例1:把其他函数作为参数 function fn1 阅读全文
posted @ 2023-04-21 05:40
code星
阅读(72)
评论(0)
推荐(0)
摘要:
title: 04-创建对象和继承 publish: true 创建对象的几种方式 通过Object <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>01_Object构造函数模式</title> </hea 阅读全文
posted @ 2023-04-21 05:40
code星
阅读(42)
评论(0)
推荐(0)
摘要:
title: 08-this this this的作用 this可以帮我们简化很多代码。比如xiaoming.name、xiaoming.age可以直接写成this.name、this.age。 特别是当我们不知道一个对象是什么,或者这个对象没有名字但又很想调用它的时候,就会使用到this对象。 举 阅读全文
posted @ 2023-04-21 05:40
code星
阅读(59)
评论(0)
推荐(0)

浙公网安备 33010602011771号