update
This commit is contained in:
parent
b0c33406ac
commit
6e45a9a8fa
@ -55,9 +55,9 @@ db.createUser(
|
||||
)
|
||||
db.createUser(
|
||||
{
|
||||
user: "yg",
|
||||
pwd: "zV1pL8sP4nQ1",
|
||||
roles: [ { role: "dbOwner", db: "yg" }]
|
||||
user: "coc",
|
||||
pwd: "qlSfefSor5",
|
||||
roles: [ { role: "dbOwner", db: "coc" }]
|
||||
}
|
||||
)
|
||||
```
|
||||
|
@ -1,9 +1,15 @@
|
||||
class MyCoolArray extends Array {
|
||||
first() { return this[0] }
|
||||
last() { return this[this.length - 1] }
|
||||
}
|
||||
b = [1, 2, 3]
|
||||
a = new MyCoolArray(...b)
|
||||
console.log(a.first())
|
||||
console.log(a[2])
|
||||
console.log(b[-1])
|
||||
setTimeout(() => console.log('a'));
|
||||
Promise.resolve()
|
||||
.then(
|
||||
() => {
|
||||
console.log('b');
|
||||
}
|
||||
).then(
|
||||
() => Promise.resolve('c').then(
|
||||
(data) => {
|
||||
setTimeout(() => console.log('d'));
|
||||
console.log('f');
|
||||
return data;
|
||||
}
|
||||
)
|
||||
).then(data => console.log(data));
|
Loading…
x
Reference in New Issue
Block a user