typeof()返回六种数据类型(全是字符串) number string Boolean undefined object function object:对象,数组,null 早期null是用来给对象占位的 所以null返回时object 当变量没定义就使用系统会报错但是在typeof里面使用除 ...
分类:
其他好文 时间:
2020-07-25 23:52:35
阅读次数:
64
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
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Text; using System.Drawing; using System.IO; namespa ...
package LeetCode_283 /** * 283. Move Zeroes * https://leetcode.com/problems/move-zeroes/description/ * * Given an array nums, write a function to move ...
分类:
其他好文 时间:
2020-07-25 09:55:29
阅读次数:
69
The option-critic architecture论文翻译与理解 ...
分类:
其他好文 时间:
2020-07-25 09:51:31
阅读次数:
62
// 第1种 (function fn(i) { console.log(i) // 22 })(22); // 第2种 (function () { // open IIFE // inside IIFE }()); // close IIFE // 第3种 !function () { // o ...
分类:
编程语言 时间:
2020-07-24 19:05:17
阅读次数:
65
alias 是一个设置别名的命令 例如: alias cls= 'clear' 设置完成之后,就可以用 cls 完成clear命令的清屏操作但美中不足的·是,当系统重启之后就会失效,所以要实现永久有效,则需要 修改用户目录下的一个文件 .bashrc目录为 ~/.bashrc vim ~/.bash ...
分类:
其他好文 时间:
2020-07-24 16:34:19
阅读次数:
91
1.安装sass 依赖包 终端输入 npm install sass-loader --save-dev npm install node-sass --sava-dev 2.build文件夹下的webpack.base.conf.js的rules里面添加配置 { test: /\.scss$/, ...
分类:
Web程序 时间:
2020-07-24 16:27:10
阅读次数:
96
App({ onLaunch: function(options) { }, wxLogin() { let that = this; return new Promise((resolve, reject) => { wx.request({ url: 'www.xx.com', success: ...
分类:
微信 时间:
2020-07-24 15:36:17
阅读次数:
101
区别:axios是通过Promise实现对ajax技术的一种封装,就像jquery对ajax的封装一样,简单来说就是ajax技术实现了局部数据的刷新,axios实现了对ajax的封装,axios有的ajax都有,ajax有的axios不一定有,总结一句话就是axios是ajax,ajax不止axio ...
分类:
移动开发 时间:
2020-07-24 09:45:33
阅读次数:
97