1、变量提升 根据javascript的运行机制和javascript没有块级作用域这个特点,可以得出,变量会声明提升移至作用域 scope (全局域或者当前函数作用域) 顶部的。 变量声明提升至全局域 变量声明提升至当前函数域 2、undefined和未定义(not defined)区别 unde ...
分类:
Web程序 时间:
2017-05-12 00:00:42
阅读次数:
261
1.轻量级typeof typeof 通常能判断以下6种数据类型,在平时开发中使用率比较高,存在的缺点是不够精准。比如typeof 对 array ,null,{}的判断均输出了Object。 "number" "string" "boolean" "object" "function" "unde ...
分类:
Web程序 时间:
2017-05-08 12:30:20
阅读次数:
214
SCSS nesting can produce DRYer code by targeting child elements without having to write the parent class. Nesting up to 3 levels deep can help us unde ...
分类:
Web程序 时间:
2017-04-12 10:04:14
阅读次数:
163
1、大小 width 宽度,单位px或% height 高度,单位px或% 2、字体 font-family 字体样式 font-size 字体大小,单位px font-style 字体倾斜(italic) font-weight 字体加粗(bold) text-decoration 下划线unde ...
分类:
其他好文 时间:
2017-03-26 18:40:13
阅读次数:
169
一切皆对象 js中 值类型就不是对象 剩下的都是对象(也就是引用类型) typeof()运算符 判断四种值类型 typeof 10; --> Number || typeof "10" -->String || typeof true --> Boolean || typeof x --> unde ...
分类:
Web程序 时间:
2017-02-14 13:16:24
阅读次数:
234
js中定义变量的方式有三种const、var、let const 作用域:全局作用域或函数作用域 定义的变量不可修改,且必须初始化 eg: const a= 1; a= 2; console.log(a); //1 不可修改 const b; b= 1; console.log(b);// unde ...
分类:
其他好文 时间:
2017-01-25 17:37:48
阅读次数:
180
We can create the most basic components of our GraphQL Schema using GraphQL's Object Types. These types allow us to group related fields together unde ...
分类:
其他好文 时间:
2016-12-28 09:50:14
阅读次数:
169
一、变量提升 在ES6之前,JavaScript没有块级作用域(一对花括号{}即为一个块级作用域),只有全局作用域和函数作用域。变量提升即将变量声明提升到它所在作用域的最开始的部分。上个简历的例子如: 1 2 3 4 5 6 7 8 9 10 console.log(global); // unde ...
分类:
Web程序 时间:
2016-12-27 13:54:34
阅读次数:
232
https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed unde... ...
分类:
其他好文 时间:
2016-12-16 09:51:05
阅读次数:
193
Werewolf Time limit: 1.0 secondMemory limit: 64 MB Knife. Moonlit night. Rotten stump with a short black-handled knife in it. Those who know will unde ...
分类:
其他好文 时间:
2016-09-15 19:15:56
阅读次数:
170