摘要: Tuo让我这周总结solid原则。在学校的时候主要学面向对象语言的时候会接触到solid之中的一些原则。但是到公司参加工作两个月以来用的开发语言主要用的是javascript(typed languege?functional languege?),对于solid原则感觉需求或者说是应用感觉是无从下 阅读全文
posted @ 2018-10-14 20:36 ybleeho 阅读(382) 评论(0) 推荐(0) 编辑
摘要: Query is equal, hasone return the first instance from the collection,hasmany return the whole collection. 阅读全文
posted @ 2018-10-11 15:52 ybleeho 阅读(245) 评论(0) 推荐(0) 编辑
摘要: https://github.com/caolan/async/pull/1408 let see an example: balabala is not defined .. and the async will throw error globally. async waterfall sour 阅读全文
posted @ 2018-09-26 16:48 ybleeho 阅读(171) 评论(0) 推荐(0) 编辑
摘要: https://cnodejs.org/topic/5b568ec12860af042a217822 https://juejin.im/post/5a437441f265da43294e54c3 1.可扩展性 session是有状态的,token是无状态的,所以如果多台服务器上的应用,单点登录,基 阅读全文
posted @ 2018-09-26 12:24 ybleeho 阅读(303) 评论(0) 推荐(0) 编辑
摘要: let test= [1,2,3,7,5,4,4,3] console.log([...new Set(test)]) //[ 1, 2, 3, 7, 5, 4 ] 阅读全文
posted @ 2018-03-17 09:38 ybleeho 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 当前的viewport宽度设为ideal viewport的宽度,既可以设置 width=device-width,也可以设置 initial-scale=1,但这两者各有一个小缺陷,就是iphone、ipad以及IE 会横竖屏不分,通通以竖屏的ideal viewport宽度为准。所以,最完美的写 阅读全文
posted @ 2018-03-16 10:53 ybleeho 阅读(149) 评论(0) 推荐(0) 编辑
摘要: IE=edge告诉IE使用最新的引擎渲染网页,chrome=1则可以激活Chrome Frame 阅读全文
posted @ 2018-03-16 10:30 ybleeho 阅读(166) 评论(2) 推荐(0) 编辑
摘要: gulp.watch 监视文件并且可以在文件发生改动时候做一些事情。 阅读全文
posted @ 2018-02-12 15:41 ybleeho 阅读(230) 评论(0) 推荐(0) 编辑
摘要: var gulp = require('gulp') var uglify = require('gulp-uglify') var cleancss = require('gulp-clean-css') gulp.task('scripts',function () { gulp.src('app/js/*.js') .pipe(uglify()) .... 阅读全文
posted @ 2018-02-12 15:33 ybleeho 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 作用:Minify JavaScript 阅读全文
posted @ 2018-02-12 15:14 ybleeho 阅读(126) 评论(0) 推荐(0) 编辑