
js
宇智波幽助
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
js 判断各种数据类型【转】
了解js的都知道, 有个typeof 用来判断各种数据类型,有两种写法:typeof xxx ,typeof(xxx) 如下实例: typeof 2 输出 number typeof null 输出 object typeof {} 输出 object typeof [] 输出 object...转载 2018-06-15 11:30:30 · 235 阅读 · 0 评论 -
JS 栈
ES5写法: function Stack(){ let item = []; this.push = function(element){ item.push(element); } this.pop = function(){ return item.pop(); } this.peek = function(){ return i...原创 2018-09-30 11:12:26 · 806 阅读 · 0 评论