static::、self::、new self()、new static() <?php class Father{ protected static $name = "大头"; public static function father_self(){ echo self::$name."\n" ...
分类:
其他好文 时间:
2021-05-24 14:21:29
阅读次数:
0
1.提高 Webpack 打包速度 (1)优化loader的文件搜索范围 Babel 是编写下一代 JavaScript 的编译器 对于 Loader 来说,影响打包效率首当其冲必属 Babel 了。因为 Babel 会将代码转为字符串生成 AST,然后对 AST 继续进行转变最后再生成新的代码,项 ...
分类:
Web程序 时间:
2021-05-24 14:18:33
阅读次数:
0
/* * Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. ...
分类:
编程语言 时间:
2021-05-24 14:13:02
阅读次数:
0
安装pymysql报错: TypeError: 'encoding' is an invalid keyword argument for this function Command "python setup.py egg_info" failed with error code 1 in c:\ ...
分类:
数据库 时间:
2021-05-24 13:57:46
阅读次数:
0
// // 函数代码分隔符 // function * gen(){ // // console.log('hello generator'); // } // let iterator = gen(); // // console.log(iterator); // // iterator.nex ...
分类:
其他好文 时间:
2021-05-24 13:47:04
阅读次数:
0
如果数组里的第一个字符串包含了第二个字符串中的所有字母,则返回 true。例如,["hello", "Hello"] 应该返回 true。因为在忽略大小写的情况下,第一个字符串包含了第二个字符串里出现的所有字母。["hello", "hey"] 应该返回 false。因为 hello 并不包含字符 ...
分类:
其他好文 时间:
2021-05-24 13:43:43
阅读次数:
0
<?php class One{ private static $_one; private function __construct(){} private function __clone(){} public static function getOne(){ if(!self::$_one ...
分类:
Web程序 时间:
2021-05-24 13:36:59
阅读次数:
0
JavaScript let 和 const ECMAScript 2015(ECMAScript 6) ES2015(ES6) 新增加了两个重要的 JavaScript 关键字: let 和 const。 let 声明的变量只在 let 命令所在的代码块内有效。 const 声明一个只读的常量,一 ...
分类:
编程语言 时间:
2021-05-24 13:32:18
阅读次数:
0
简介 使用队列实现队列哈哈. code class MyQueue { public: queue<int> q; public: /** Initialize your data structure here. */ MyQueue() { } /** Push element x to the ...
分类:
其他好文 时间:
2021-05-24 13:17:52
阅读次数:
0
泛型 1 泛型存在的目的 类型参数化,模板化编程,简化编程 2 泛型的原理 java的泛型参数在运行时会进行类型擦除,擦除后就是object,编译器也会转成object进行编译 那么为啥使用泛型呢? 更加安全 更好的可读性 3 泛型的使用 最常用的容器类比如List 泛型类 class Pair2< ...
分类:
编程语言 时间:
2021-05-24 13:12:20
阅读次数:
0