ES6中一共12个数据类型,分为两类,每类6个 基本数据类型 → 栈 (6个) string number boolean null undefined Symbol(es6) 引用数据类型 → 堆(6个) array object function data Set(es6) Map(es6) 1 ...
分类:
Web程序 时间:
2020-07-25 23:39:09
阅读次数:
90
预览地址 http://106.12.212.110:8077/#/ 上期我们说了如何创建项目并把各个项目的文件结构创建好后这期我们来说如何画出图中代写线段 首先我们在src/components/Render.vue中添加一下引用 import zrender from 'zrender' imp ...
分类:
其他好文 时间:
2020-07-25 23:25:36
阅读次数:
80
数据类型的分类和判断 基本(值)类型 Number 任意数值 typeof String 任意字符串 typeof Boolean true/false typeof undefined undefined typeof/ null null 对象(引用)类型 Object typeof/insta ...
分类:
Web程序 时间:
2020-07-25 23:15:50
阅读次数:
77
基本操作 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> /* JS中数据类型 String字符串 Number数值 Boolean布尔值 Nul ...
分类:
编程语言 时间:
2020-07-25 11:44:42
阅读次数:
174
.nav { position: relative; z-index:1;}z-index : auto | numberauto:默认值。number:无单位的整数值,可为负数。z-index 值较大的元素将叠加在z-index值较小的元素之上。对于未指定此属性的定位对象,z-index 值为正数 ...
分类:
Web程序 时间:
2020-07-25 11:41:13
阅读次数:
134
tput sc ##记录光标位置 tput cup x y ###移动光标至x列y行 tput rc ##返回光标位置 tput civis ##隐藏光标 tput cnorm ## 显示光标 tput setaf ColorNumber## 设置前景色 tput setab ColorNumber ...
分类:
系统相关 时间:
2020-07-25 09:18:53
阅读次数:
107
日历有点奇怪,显示今天是 7 月 24 了都。 :) Alg https://leetcode-cn.com/problems/count-number-of-nice-subarrays/ 遍历所有子数组。 - 时间复杂度 : O(n^3) - 空间复杂度 : O(1) 从上面的思路进行截取,对于 ...
分类:
其他好文 时间:
2020-07-24 21:42:30
阅读次数:
69
>>>dict() # 创建空字典 {} >>> dict(a='a', b='b', t='t') # 传入关键字 {'a': 'a', 'b': 'b', 't': 't'} >>> dict(zip(['one', 'two', 'three'], [1, 2, 3])) # 映射函数方式来构 ...
分类:
其他好文 时间:
2020-07-24 19:10:00
阅读次数:
67
1.什么是方法的重写(override 或 overwrite)? 子类继承父类以后,可以对父类中同名同参数的方法,进行覆盖操作. 2. 应用 重写以后,当创建子类对象以后,通过子类对象调用子父类中的同名同参数的方法时,实际执行的是子类重写父类的方法。 3.举例: class Circle{ pub ...
分类:
其他好文 时间:
2020-07-24 16:26:53
阅读次数:
67
export default class Test extends cc.Component{ //#region 声明 public foo():void; public foo(a:string,b:string):string; public foo(a:number,b:number):nu ...
分类:
其他好文 时间:
2020-07-24 16:12:30
阅读次数:
57