严富坤的知识库专栏 本次搜索耗时 0.038 秒,为您找到 489 个相关结果.
  • 深入解析TypeScript中的对象及其高级特性

    一、对象的基本定义和创建 1.1 字面量创建 1.2 使用接口定义对象结构 1.3 使用类型别名定义对象结构 二、 对象的高级特性 2.1 可选属性(Optional Properties) 2.2 只读属性(Read-only Properties) 2.3 动态属性(Index Signatures) 2.4 方法(Methods) 2....
  • MVC模式

    1171 2024-09-12 《设计模式》
    Question 1: What is the MVC architectural pattern in software design? 问题 1:什么是软件设计中的MVC架构模式? Answer: MVC (Model-View-Controller) is a software architectural pattern that separ...
  • 命令模式

    1165 2024-09-12 《设计模式》
    Question 1: What is the Command pattern in software design? 问题 1:什么是软件设计中的命令模式? Answer: The Command pattern is a behavioral design pattern that turns a request or action into ...
  • Vue实例对象与window对象是什么关系?

    一、全局变量与 window 对象的关系 1. 全局变量成为 window 对象的属性的条件 2. 为什么 Vue 实例通常不会成为 window 的属性 二、示例说明 1. Vue 实例不会默认成为 window 的属性 2. 显式地将 Vue 实例赋值给 window 对象 三、总结 四、深入理解 1. 变量声明方式的影响 2....
  • 装饰器模式

    1159 2024-09-12 《设计模式》
    Question 1: What is the Decorator pattern in software design? 问题 1:什么是软件设计中的装饰器模式? Answer: The Decorator pattern is a structural design pattern that allows behavior to be adde...
  • 中介模式

    1149 2024-09-12 《设计模式》
    Question 1: What is the Mediator pattern in software design? 问题 1:什么是软件设计中的中介模式? Answer: The Mediator pattern is a behavioral design pattern that defines an object (the mediat...
  • 解释器模式

    1149 2024-09-12 《设计模式》
    Question 1: What is the Interpreter pattern in software design? 问题 1:什么是软件设计中的解释器模式? Answer: The Interpreter pattern is a behavioral design pattern that provides a way to eval...
  • 策略模式

    1148 2024-09-12 《设计模式》
    Question 1: What is the Strategy pattern in software design? 问题 1:什么是软件设计中的策略模式? Answer: The Strategy pattern is a behavioral design pattern that defines a family of algorithm...
  • 桥接模式

    1146 2024-09-12 《设计模式》
    Question 1: What is the Bridge pattern in software design? 问题 1:什么是软件设计中的桥接模式? Answer: The Bridge pattern is a structural design pattern that decouples an abstraction from its...
  • 状态模式

    1143 2024-09-12 《设计模式》
    Question 1: What is the State pattern in software design? 问题 1:什么是软件设计中的状态模式? Answer: The State pattern is a behavioral design pattern that allows an object to change its beha...