Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate tutorial/component.md #83

Merged
merged 5 commits into from
Nov 28, 2018
Merged

Conversation

ice-zjchen
Copy link
Collaborator

@ice-zjchen ice-zjchen commented Nov 2, 2018

one of #65

@ice-zjchen ice-zjchen changed the title translate tutorial/component.md #65 translate tutorial/component.md Nov 2, 2018
@@ -57,7 +55,7 @@ class HelloComponent extends Component {
new HelloComponent().attach(document.body);
```

对于不使用 ESNext 时,写一个 function 然后调用 **san.inherits** 再写各种 prototype 实在是有点麻烦,San 提供了快捷方法 **san.defineComponent** 用于方便地定义组件。
When defining a component no in ESNext way, it is boring to create a function, call **san.inherits** and define various prototypes. San provides a shortcut method **san.defineComponent** to make it easy.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no in ESNext way
in a non-esnext way
no in是什么鬼2333

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T. T

------

San 的组件是 HTML 元素扩展的风格,所以其生命周期与 WebComponents 相符合。
San components use HTML-based template syntax, so their lifecycle is consistent with WebComponents.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax, so their lifecycle is consistent with WebComponents
syntax in order too keep their lifecycles consistent with WebComponents

@otakustay otakustay merged commit 244b710 into baidu:master Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants