会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
前端进阶之路
博客园
首页
新随笔
联系
订阅
管理
2018年10月4日
荷兰国旗问题
摘要: /** * 荷兰国旗问题 java写法 */ public class NetherlandsFlag { public static int[] partition(int[] arr, int L, int R, int num) { int less = L - 1; int more = R +1; int cur = L; while(curn...
阅读全文
posted @ 2018-10-04 10:37 前端进阶之路
阅读(193)
评论(0)
推荐(0)
编辑
2018年10月1日
关于+new Date()
摘要: 今天看React小书,发现一个比较有意思的写法: +new Date() 之前没遇到过这种写法,console.log()之后发现返回的是时间戳。 恍然大悟,原来+相当于把这个时间对象做了隐士的类型转换啊。
阅读全文
posted @ 2018-10-01 10:27 前端进阶之路
阅读(3926)
评论(0)
推荐(0)
编辑
2018年9月27日
VScode 的一些配置 (转载)
摘要: 本文转载自https://www.jianshu.com/p/23a5d6194a4b ESlint:是用来统一JavaScript代码风格的工具,不包含css、html等。 背景: 近来研究前端,然后一直在百度上找VScode格式化(ESlint)的插件,结果找了半天都不靠谱。目前没有一个可以格式
阅读全文
posted @ 2018-09-27 19:30 前端进阶之路
阅读(19551)
评论(0)
推荐(0)
编辑
公告