-
Notifications
You must be signed in to change notification settings - Fork 79
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
Conversation
@@ -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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
one of #65