45 Matching Annotations
  1. Jul 2023
  2. Feb 2023
    1. 返回一个只读的响应式 ref 对象

      区别就是,watch不会有ref返回值。

  3. Dec 2022
    1. 父组件模板的所有东西都会在父级作用域内编译;子组件模板的所有东西都会在子级作用域内编译。简单的所,就是父组件中不能直接用自组件中定义的data数据。而slot-scope的出现就是解决了这样的问题
  4. Sep 2022
    1. 该库的 ES 模块版本

      这里的意思是:可以添加其他的ES模块库,但想使用vue的话,必须引入vue对应的ES模块库

    2. 通过 HTTP 提供服务

      这里的意思是:可以启动一个http服务器,这样就可以在html文件中,通过ES6来import 自己的js块代码。即:可以使用ES6的import和export了

    3. `<div>count is {{ count }}</div>`

      vscode中可以安装es6-string-html扩展来高亮js字符串模板

    1. 值得注意的是,reactive() 返回的是一个原始对象的 Proxy,它和原始对象是不相等的

      reactive方法处理后,返回的对象不再是原来的引用

  5. Jan 2022
  6. Dec 2021
  7. Nov 2021
  8. Mar 2021
    1. What are the current trends in JavaScript development?

      Performance, speed, or popularity? What are the most vital characteristics that developers seek in the tech stack? There could hardly be a single reason why certain frameworks rise, while others become the thing of the past.

      What you can do is to observe the driving directions within the front-end landscape. So let’s dive into the top JavaScript trends to watch in 2021.

    1. someGetter (state, getters, rootState, rootGetters) {

      Note including all the parameters here is important. If you do not include all four and you want to use rootGetters for example:

      someGetter (state, rootGetters) {
      

      rootGetters will be getters because getters is the second argument passed to this function and so you will not actually be on the root scope but instead the local scope.

      To access rootGetters in another name spaced module:

      someGetter (state, getters, rootState, rootGetters) {
        let value = rootGetters["module-name/getterName"](param1);
      
  9. Nov 2020
    1. Because of those similarities, it's possible to automate some of the changes.
    2. Those frameworks are used in a similar fashion, but conceptually use quite different approaches (Vue is a more traditional one, a library, and Svelte is a "dissapearing framework").

      interesting wording: Svelte is a "disappearing framework".

  10. Oct 2020
    1. bringing Vue-style reactive stores with data and computed properties into Svelte
  11. Sep 2020
    1. In Vue, your markup must be wrapped in a <template> element, which I'd argue is redundant.
  12. Jul 2020
  13. Oct 2019
    1. I'm super stoked about Vue.js though...I'm kind of over Angular at this point since it left a bad taste in my mouth last year (it's a much larger framework and the 'official' build system isn't even being used anymore by programmers)
    2. I'm doing a newer project in Vue.js because it looks much lighter than Angular and just awesome all around
    3. Been there, done that. Vue.js takes the best ideas form Angular (and some from React), without putting you in ZoneAwareError hell.