Skip to content

Commit 7741e83

Browse files
committed
新增设计模式
1 parent a90899f commit 7741e83

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

QA.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ PHP 代码 => 启动 php 及 zend 引擎,加载注册拓展模块 => 对代码
653653

654654
### MVC 的理解
655655

656-
MVC 架构中 M 是指数据模型,V 是指用户界面,C 则是控制器;MVC 的思想是模块化分离,为了代码的重用和增强代码的维护性和扩展性出发的,其中 MVC 的实现有一定的思想和原则
656+
MVC 包括三类对象。模型 Model 是应用对象,视图 View 是它在屏幕上的表示,控制器 Controller 定义用户界面对用户输入的响应方式。不使用 MVC,用户界面设计往往将这些对象混在一起,而 MVC 则将它们分离以提高灵活性和复用性
657657

658658
### 主流 PHP 框架特点
659659

@@ -1990,6 +1990,12 @@ openssl_random_pseudo_bytes ( int $length [, bool &$crypto_strong ] ) : string
19901990

19911991
## 设计模式篇
19921992

1993+
### 什么是设计模式
1994+
1995+
每一个模式描述了一个在我们周围不断重复发生的问题,以及该问题的解决方案的核心。这样,你就能一次又一次地使用该方案而不必做重复劳动
1996+
1997+
模式要素:模式名称、问题、解决方案、效果
1998+
19931999
### Autoload、Composer 原理
19942000

19952001
### OOP 思想

0 commit comments

Comments
 (0)