tag : javascript

wechat not support promise on android

wechat not support promise on android wechat not support promise in low version android , but some IOS system can do it . if you debug get nothing, but the program run not correct, you can care abo

setup eslint with es6 in sublime text

setup eslint with es6 in sublime textget started with eslint12345npm install eslint -g # or npm install eslint npm install babel-eslint -g you can install it either globally or locally. configurecrea

在报错时,让gulp监视仍继续的方法

在运行glup任务时,如果使用watch进行task,如果task没有做错误处理,gulp进程会直接崩溃掉,如果我们想出错扔继续监听怎么办?有时候我们需求以下场景:实时的编译jade模板,编写jade模板时实时的进行编译输出,偶尔语法错误,这时gulp就崩溃了,又要重新运行watch? 是不是很烦? 原理:gulp官方推荐在编写的插件中在发生错误时抛出一个gulp-util的错误,这个错误会出现