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

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

@Brooooooklyn

Description

@Brooooooklyn

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

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions