鍍金池/ 問答/HTML/ vue源碼的疑惑

vue源碼的疑惑

無意中看見vue源碼

export function initMixin (Vue: Class<Component>) { 
    Vue.prototype._init = function (options?: Object) {
    const vm: Component = this
    // a uid
    vm._uid = uid++

    ...
}

里面好多Vue: Class<Component> 和 const vm: Component = this,這些都是什么語法?

回答
編輯回答
遺莣

flow
沒記錯(cuò)的話是 flow

2018年6月21日 20:50
編輯回答
笨小蛋

樓主去查一下flow

2017年8月1日 11:27