01 2021 档案
摘要:原文:https://www.cnblogs.com/skywind/p/14343721.html 1. 概要 当我们完成angular的开发后,如何部署到服务器呢? 2. 编译打包 2.1. 基本打包命令 基于Angular CLI生成的Angular项目,默认会有2个环境配置文件 └──myP
阅读全文
摘要:原文: https://appdividend.com/2019/12/16/angular-form-control-example/ Angular FormControl is an inbuilt class that is used to get and set values and va
阅读全文
摘要:转, 原文:https://www.cnblogs.com/iampeter/p/3223487.html 堆排序有点小复杂,分成三块: 第一块,什么是堆,什么是最大堆 第二块,怎么将堆调整为最大堆,这部分是重点 第三块,堆排序介绍 第一块,什么是堆,什么是最大堆 什么是堆 这里的堆(二叉堆),指得
阅读全文
摘要:https://www.tutorialspoint.com/how-do-you-pass-objects-by-reference-in-php-5 参考: https://www.cnblogs.com/aademeng/articles/9194688.html This isn't "pa
阅读全文
摘要:原文: https://www.cnblogs.com/flashsun/p/14266148.html 你是一台电脑,你的名字叫 A 很久很久之前,你不与任何其他电脑相连接,孤苦伶仃。 直到有一天,你希望与另一台电脑 B 建立通信,于是你们各开了一个网口,用一根网线连接了起来。 用一根网线连接起来
阅读全文
摘要:https://www.php.net/manual/en/class.arrayaccess.php <?php /** * ArrayAndObjectAccess * Yes you can access class as array and the same time as object *
阅读全文
摘要:当static用来修饰局部变量的时候,它就改变了局部变量的存储位置,从原来的栈中存放改为静态存储区。但是局部静态变量在离开作用域之后,并没有被销毁,而是仍然驻留在内存当中,直到程序结束,只不过我们不能再对他进行访问。 静态成员:静态类中的成员加入static修饰符,即是静态成员.可以直接使用类名+静
阅读全文
摘要:下面的链接下载对应版本的xdebug. https://xdebug.org/download/historical 源码安装:https://xdebug.org/docs/install#linux Installation From Source Obtain You can download
阅读全文
摘要:原文:https://www.cnblogs.com/detectiveHLH/p/14206712.html 0. 什么是圈复杂度 可能你之前没有听说过这个词,也会好奇这是个什么东西是用来干嘛的,在维基百科上有这样的解释。 Cyclomatic complexity is a software m
阅读全文
摘要:原文:https://www.php.cn/php-ask-429607.html php7需要在php.ini中配置zend.assertions = 1, 或者运行时通过ini_set()配置。 <?php function arraySum(array $nums) { $sum = 0; f
阅读全文
摘要:参考: https://www.cnblogs.com/fps2tao/p/10393755.html 1. 用途1,获取源代码未知的类的方法: 如class Redis 有哪些方法? <?php $redis = new Redis(); $redis->connect('127.0.0.1',
阅读全文
摘要:参考: https://www.zhihu.com/question/28062458 https://blog.csdn.net/weixin_34219944/article/details/85523662?utm_medium=distribute.pc_relevant_t0.none-t
阅读全文
摘要:运行结果: <?php //$a = scandir('/tmp/caoym_temp'); //foreach($a as $v) { // if ($v == '.' || $v == '..') { // continue; // } // $cont = file_get_contents(
阅读全文
摘要:原文: https://zhuanlan.zhihu.com/p/133857206 Composer是一个非常流行的PHP包依赖管理工具,已经取代PEAR包管理器,对于PHP开发者来说掌握Composer是必须的. 对于使用者来说Composer非常的简单,通过简单的一条命令将需要的代码包下载到v
阅读全文
摘要:hex编码, 意义是什么呢? https://stackoverflow.com/questions/39235626/string-does-what-i-hoped-strconv-itoa-would-do strconv.Itoa formats an integer as a decima
阅读全文