2017年9月15日
摘要: gulp-sequence功能:gulp的task默认都是并行(异步)执行,gulp-sequence可以提供串行执行task的功能 gulpfile.js: 运行效果: 扩展:下面例子,并行执行a,b完成后,串行执行c,之后并行执行d,e,完成后再串行执行f 阅读全文
posted @ 2017-09-15 18:24 王雪皓 阅读(1022) 评论(0) 推荐(0)
摘要: 并行执行:run 'a', 'b' in parallel 依赖:deps dist目录:是distribution的缩写 asynchronous:读音[e'sɪŋkrənəs] util:utility缩写:公用事业; 功用,效用; 有用的物体或器械; anonymous:匿名的 portion 阅读全文
posted @ 2017-09-15 17:06 王雪皓 阅读(719) 评论(0) 推荐(0)
摘要: gulp-connect作用:建立一个webserver gulpfile.js如下 效果: 命令行运行命令 gulp dev,浏览器访问 http://localhost:8000/,如下 阅读全文
posted @ 2017-09-15 16:42 王雪皓 阅读(1124) 评论(0) 推荐(0)
摘要: let:块级作用域、不会被提升 var:函数级作用域 详见:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Statements/let 阅读全文
posted @ 2017-09-15 16:18 王雪皓 阅读(126) 评论(0) 推荐(0)