Douglas Magic

Results 43 comments of Douglas Magic
trafficstars

> 用五年的时间做一技之长,三年的时间独立做事

```vue export default { data() { return { currentIndex: 0, pages: [] }; }, created() { this.pages = [...this.$pagination.pages]; }, mounted() { this.$nextTick(() => { this.observerAndLoadNext(); }); }, methods: {...

want support vuepress-next too.

add a comment

add a comment

add another comment

@ChaosGT 箭头函数的this是在定义时就决定的,你的代码中 `sayAge` 处时 `this` 执行全局,`strict` 下就是 `undefined` 。 你再上面是 class 语法,那里面的定义时, `this` 为 Animal 的实例。

@s97712 Just use the amd moudle to load the monaco-editor.

@jevinpi For amd , You can refer to the official demo [Monaco Editor Localization Sample](https://github.com/Microsoft/monaco-editor-samples/blob/master/browser-amd-localized/index.html), and also you can refer mine [demo](https://fe.epoint.com.cn/miniui_new/demo/runCode/codeview2.html) at line 96.

## 题目 ```js var entry = { a: { b: { c: { dd: 'abcdd' } }, d: { xx: 'adxx' }, e: 'ae' } }; // 要求转换成如下对象 var output...