前言:JavaScript原始数据类型主要分为布尔值、数值、字符串、nul、undefined和ES6中的新类型Symbol和BigInt TypeScript中原始数据类型的应用 一、布尔值(boolean) let isDone : boolean = false ; 二、数值(number) ...
分类:
其他好文 时间:
2021-04-12 12:54:06
阅读次数:
0
/* typeScript 中的数据类型 boolean number string array tuple 元组类型 enum 枚举类型 any 任意类型 null 和 undefined void 类型 never 类型 */ let str: string = '你好' // str = 1 ...
分类:
其他好文 时间:
2021-04-12 12:40:46
阅读次数:
0
上一篇说了提到mutation时如何传参,写法如下: const five = 5 this.$store.commit('increfive',five) 但这种写法是普通的写法,还有一种比较特殊的写法,如下: const ten = 10 this.$store.commit({ type: ' ...
分类:
其他好文 时间:
2021-04-12 11:46:34
阅读次数:
0
什么是强制(显式)类型转换?什么是隐式类型转换? 强制(显式)型转换如下 Boolean(0) Boolean(newobject()) Number(undefined) Number(null) String(null) parseInt()、parseFloat()、JSON.parse()、 ...
分类:
其他好文 时间:
2021-04-10 13:36:00
阅读次数:
0
1.1 形参与实参 形参(形式参数):在定义函数阶段,定义的参数称之为形参,粗略的可以认为是变量名。 实参:在调用函数阶段传入的值称之为实际参数,简称实参,粗略的可以认为是变量值。 def ware_info(vendor_name, store_name, sku): return "{}商家下的 ...
分类:
其他好文 时间:
2021-04-05 12:43:51
阅读次数:
0
类型转换 类型转换就是指将其他的数据类型,转换为String Number 或 Boolean 转换为String 方式一(强制类型转换): 调用被转换数据的toString()方法例子:var a = 123;a = a.toString();注意:这个方法不适用于null和undefined由于 ...
分类:
Web程序 时间:
2021-04-01 13:22:42
阅读次数:
0
进入到/etc/fdfs目录下 修改storage的配置文件 vi storage.conf # 修改组名 group_name= group1 #自定义组名 # 修改storage的工作空间 base_path=/usr/local/fastdfs/storage # 修改storage的存储空间 ...
分类:
其他好文 时间:
2021-03-30 13:23:37
阅读次数:
0
HTML: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conte ...
分类:
其他好文 时间:
2021-03-29 12:53:35
阅读次数:
0
目录 引子 正文 公民:actions、action 创建者、reducers 和 store Actions and action 创建者 Store Reducers 状态设计 状态形态 Reducers 合并 归一化 常见模式 选择器 鸭子/模块 状态机 常见陷阱 不要为不同的目的复用相同的异 ...
分类:
其他好文 时间:
2021-03-29 12:15:26
阅读次数:
0
一、环境准备: 1. python 版本,Microsoft Store 直接安装的: D:\Documents\python lab\python\python_switch>python Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37: ...
分类:
其他好文 时间:
2021-03-18 14:15:20
阅读次数:
0