IMOOC icon indicating copy to clipboard operation
IMOOC copied to clipboard

IMOCC辛勤的搬运工:fire:

Results 107 IMOOC issues
Sort by recently updated
recently updated
newest added

Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 5.2.1 to 8.0.1. Changelog Sourced from node-notifier's changelog. v8.0.1 fixes possible injection issue for notify-send v8.0.0 Breaking changes: Expire time for notify-send is made to match macOS...

dependencies

Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 5.2.1 to 8.0.1. Changelog Sourced from node-notifier's changelog. v8.0.1 fixes possible injection issue for notify-send v8.0.0 Breaking changes: Expire time for notify-send is made to match macOS...

dependencies

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. Commits a2c5da8 1.3.8 af5c6bb Do not use Object.create(null) 8b648a1 don't test where our devdeps don't even work c74c8af 1.3.7 024b8b5 update deps, add linting...

dependencies

Bumps [bcrypt](https://github.com/kelektiv/node.bcrypt.js) from 3.0.2 to 5.0.0. Release notes Sourced from bcrypt's releases. v5.0.0 Fix the bcrypt "wrap-around" bug. It affects passwords with lengths >= 255. It is uncommon but it's...

dependencies

Bumps [bcrypt](https://github.com/kelektiv/node.bcrypt.js) from 3.0.2 to 5.0.0. Release notes Sourced from bcrypt's releases. v5.0.0 Fix the bcrypt "wrap-around" bug. It affects passwords with lengths >= 255. It is uncommon but it's...

dependencies

Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.3.12 to 5.7.5. Changelog *Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.7.5 / 2019-10-14 > ================== > * fix(query): delete top-level `_bsontype` property in queries to prevent silent empty...

dependencies

Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.3.12 to 5.7.5. Changelog *Sourced from [mongoose's changelog](https://github.com/Automattic/mongoose/blob/master/History.md).* > 5.7.5 / 2019-10-14 > ================== > * fix(query): delete top-level `_bsontype` property in queries to prevent silent empty...

dependencies

# 前言 该文章通过慕课网教程[《移动web开发适配秘籍Rem》](https://www.imooc.com/learn/942)编写而成,大体上的内容与课程一致。 ### 移动端开发有如下的特点 - 跑在手机端的web页面(H5页面); - 跨平台; - 基于webview; - 告别IE拥抱webkit; - 更高的适配和性能要求。 ### 常见移动web适配方法 (1)PC端 - 960px/1000px居中; - 盒子模型,定宽,定高; - display:inline-block。 (2)移动web - 定高,宽度百分比; - flex; -...

# 一、前言 该博文源自慕课网的[《JavaScript正则表达式》课程](https://www.imooc.com/learn/706)。老师讲的生动有趣,由浅入深,是一门好课程。为了让自己更好记忆和继续深究正则表达式,因此写下该篇博文。下面推荐两个实用的在线网站: [正则表达式工具](http://regexper.com) [代码及时响应在线网站](http://jsbin.com) # 二、实例化正则对象 在JavaScript中,一共有两种方法实例化正则对象,下面请看具体的方法。 **1、** 字面量:`var reg = /\bis\b/g;` 【注意】 \b代表单词边界,g代表全文进行匹配。如果没有\b和g,会怎么样呢?请动手分别进行测试一下,下面给出测试模板,内容可自行更改。 测试:`'he is a boy,This is a dog'.replace(reg,'IS');` **2、** 构造函数:`var reg = new RegExp('\\bis\\b','g'); ` 【注意】...

# 前言 这篇博文是根据[慕课网教程](https://www.imooc.com/learn/949)整理而来,内容几乎都会是讲师的原话,外带一些自己的理解。 ## Promise是什么 这个英语单词翻译成中文意思就是:许诺;允诺;有可能。因此从字面上就可以知道它代表了即将要发生的事情,从而联想到了JavaScript中异步程序。 **按照它的实际用途来看主要有以下几点** - 用于异步计算 - 可以将异步操作队列化,按照期望的顺序执行,返回符合预期的结果 - 可以在对象之间传递和操作Promise,帮助我们处理队列 ## Promise产生的背景 根源是为了优化表单提交的用户体验,而开发了JavaScript这款包含大量异步操作的脚本语言。在提交表单中异步程序的表现是怎么样的呢?就是当你注册会员的时候,填写了昵称这玩意,然后再填写密码的时候,同时服务器里会检测这个昵称是否已经被注册从而做出一些回应,而不用等你全部信息填写好点击提交才告诉你昵称已经存在。 借由异步的这一个特点,可以想到:异步操作能够避免界面冻结!异步的本质用大白话说就是:将耗时很长的A交付的工作交给系统之后,就去继续做B交付的工作。等到系统完成前面的工作之后,再通过回调或者事件,继续做A交付的剩下的工作。 从观察者的角度看起来,AB工作的完成顺序,和交付它们的时间顺序无关,所以叫“异步”。 **咳咳,说重点,以下才是Promise诞生的原因** - 解决因为异步操作所带来的回调地狱,从而导致维护性差,下面请看回调代码 ``` a(function (resultsFromA) { b(resultsFromA, function (resultsFromB) { c(resultsFromB,...