vue-analysis icon indicating copy to clipboard operation
vue-analysis copied to clipboard

:thumbsup: Vue.js 源码分析

Results 67 vue-analysis issues
Sort by recently updated
recently updated
newest added

Hi, can you add English version? It is very interesting to learn more deeply vue.js.

Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4. Changelog Sourced from websocket-extensions's changelog. 0.1.4 / 2020-06-02 Remove a ReDoS vulnerability in the header parser (CVE-2020-7662, reported by Robert McLaughlin) Change license from...

dependencies

大佬您好,看您文章Vuex-API-数据获取中示例代码中,有一处 ```js getters: { total (state, getters, localState, localGetters) { // 可访问全局 state 和 getters,以及如果是在 modules 下面,可以访问到局部 state 和 局部 getters return state.a + state.b } } ``` 这个地方是不是写错了? 根据源码:...

代码如下: https://jsfiddle.net/afenotes/bkjxvr07/ ``` VUE {{l}} var ul = new Vue({ el: '#list', data: { list: ['apple','banana','orange'] } }) setTimeout(function(){ // $('grape').prependTo($('#list')) $('#list').children().first().text('grape') }, 3000); setTimeout(function(){ ul.list = ['Bob','Tom','Jim'] }, 6000);...

![image](https://user-images.githubusercontent.com/39058401/80859524-53f78400-8c94-11ea-948b-ada535257300.png) 你好,我想问一下这个作用域插槽的作用域是子组件实例的问题。 据我所了解的是函数的作用域是词法作用域,所以作用域在函数定义的那个时候就已经定了,因为函数是在父组件中定义的,我认为对应的数据作用域还是父组件的作用域,不知道对不对呢?希望赐教,谢谢

In chapter 'Vue [实例挂载的实现'](https://ustbhuangyi.github.io/vue-analysis/v2/data-driven/mounted.html) with line 7,the file path describe 'src/platform/web/entry-runtime-with-compiler.js' should be 'src/platforms/web/entry-runtime-with-compiler.js'. It's a little mistake ofcourse.

next-tick.js ```JavaScript /* @flow */ /* globals MutationObserver */ import { noop } from 'shared/util' import { handleError } from './error' import { isIE, isIOS, isNative } from './env' export...

请问作者,Vue-Router源码分析时使用的是哪一个版本?

你好,我阅读vue的源码,发觉在setter已经做了次差值比较,watcher也经过了去重处理,然后却又再watcher.run做了一次新旧值比较(只比对primitive类型),才决定是否执行cb回调。那这个比较会在什么情景下会有用?还是其实基本是多余的? 麻烦指点一下,谢谢