背景 背景 背景 背景 背景 背景 背景 背景 前两天在做小程序的需求的时候用到bind的时候才想起自己对这三的东西的了解比较浅薄,这个时候用的时候就有点怕。时候还是要好好学习下,理解下怎么玩。 正文 先说call 和 apply吧:ECMAScript3给Function的原型定义了两个方法,他们 ...
分类:
移动开发 时间:
2019-05-01 12:03:53
阅读次数:
170
class Student { private int id; public String name; public String sex; private int score; public void setId(int id) { this.id = id; } public int getId ...
分类:
编程语言 时间:
2019-04-29 23:43:22
阅读次数:
178
Visual Studio Code 中文界面设置 昨天,想要试一下用 VS Code 写 Markdown 格式的博客,下载下来发现是英文界面; 按照我以前的经验应该会自动提示切换语言的,但是这次等了很长时间也没有反应,所以我只能上网查了一下手动切换了; 所幸微软在这方面用户体验还是不错的,切换语 ...
分类:
其他好文 时间:
2019-04-28 09:53:40
阅读次数:
192
Given an absolute path for a file (Unix-style), simplify it. Or in other words, convert it to the canonical path.In a UNIX-style file system, a period ...
分类:
其他好文 时间:
2019-04-25 21:27:21
阅读次数:
210
The set [1,2,3,...,n] contains a total of n! unique permutations.By listing and labeling all of the permutations in order, we get the following sequen ...
分类:
其他好文 时间:
2019-04-21 20:01:16
阅读次数:
156
很早就接触过linux,但是都是一知半解的用,连皮毛都算不上只记得几个命令而已,故决定好好学习一下linux,当前大环境下如果对linux不熟悉或者说不会基本的使用的话,会遇到很多问题。 历史: (大概是这样,如果有兴趣的可自己去百度) unix - bsd - miunix -linux linu ...
分类:
系统相关 时间:
2019-04-21 17:18:55
阅读次数:
149
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu ...
分类:
其他好文 时间:
2019-04-19 11:51:05
阅读次数:
141
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu ...
分类:
其他好文 时间:
2019-04-19 11:44:35
阅读次数:
151
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu ...
分类:
编程语言 时间:
2019-04-17 20:51:31
阅读次数:
232
Given an array of strings, group anagrams together. Example: Note: All inputs will be in lowercase. The order of your output does not matter 思路 这道题在一开 ...
分类:
其他好文 时间:
2019-04-16 20:24:02
阅读次数:
195