Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

访问上下文的时候不使用 it,作用域内的私有变量再加以标记 #4

Open
Brooooooklyn opened this issue Apr 18, 2016 · 0 comments

Comments

@Brooooooklyn
Copy link
Member

et 上下文的设计与 vue 非常类似,在模版上每次访问上下文的方法都要使用 it 非常别扭(frequent case)。而 vue 这种默认访问上下文的写法非常自然,因为在设计中一个 html template 必然绑定唯一上下文。

把私有变量私有方法,filter 等与访问上下文的动作加以区分就行了(rare case)。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants