上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: let和const 1、ES6新增了let命令,用来声明变量。它的用法类似于 "var" ,但是所声明的变量,只在let命令所在的代码块内有效。下面代码在代码块之中,分别用let和var声明了两个变量。然后在代码块之外调用这两个变量,结果let声明的变量报错,var声明的变量返回了正确的值。这表明, 阅读全文
posted @ 2020-05-06 23:45 PrimerPlus 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Map Prior to ES6, when we require the mapping of keys and values, we often use an object. It is because the object allows us to map a key to the value 阅读全文
posted @ 2020-05-06 17:42 PrimerPlus 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Closures Closures are one of the most powerful features of JavaScript. JavaScript allows for the nesting of functions and grants the inner function fu 阅读全文
posted @ 2020-04-29 15:01 PrimerPlus 阅读(69) 评论(0) 推荐(0) 编辑
摘要: Introduction to Object Oriented Programming in JavaScript As JavaScript is widely used in Web Development, in this article we would explore some of th 阅读全文
posted @ 2020-04-27 17:22 PrimerPlus 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Higher Order Functions A function that accepts and/or returns another function is called a higher order function. It's higher order because instead of 阅读全文
posted @ 2020-04-27 13:45 PrimerPlus 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Sublime Text 3快捷键 Ctrl + Shift + P 打开命令面板 Ctrl + P 搜索项目中的文件 Ctrl + G 跳到第几行 Ctrl + W 关闭当前打开文件 Ctrl + Shift + W 关闭所有打开文件 Ctrl + Shift + V 粘贴并格式化 Ctrl + 阅读全文
posted @ 2020-04-26 15:24 PrimerPlus 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Exercise 01 Max Of Two Numbers Write a function that takes two numbers and returns the maximum of the two Exercise 02 Landscape or Portrait Exercise 0 阅读全文
posted @ 2020-04-26 14:13 PrimerPlus 阅读(185) 评论(0) 推荐(0) 编辑
摘要: How to align the items of the flexible element? 阅读全文
posted @ 2020-04-24 16:22 PrimerPlus 阅读(92) 评论(0) 推荐(0) 编辑
摘要: How to define an area inside an image map? How to specify an alternate text for the area. Required if the href attribute is present? How to specify th 阅读全文
posted @ 2020-04-24 15:35 PrimerPlus 阅读(362) 评论(0) 推荐(0) 编辑
摘要: DecimalToBinary javascript function decimalToBinary(num) { var bin = []; while (num 0) { bin.unshift(num % 2); num = 1; // basically /= 2 without rema 阅读全文
posted @ 2020-04-24 14:44 PrimerPlus 阅读(127) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页