![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
game7752
这个作者很懒,什么都没留下…
展开
-
renderCommnet是什么意思
class CommentList extends React.Component { constructor(props) { super(props); } render() { return <ul> {this.props.comments.map(renderComment)} </ul>; } renderComment(...原创 2018-05-04 12:04:25 · 290 阅读 · 0 评论 -
笔记--es6模块的导出
export命令写法//一export var firstName = 'Michael';export var lastName = 'Jackson';export var year = 1958;//二var firstName = 'Michael';var lastName = 'Jackson';var year = 1958;export {firstName, ...原创 2018-05-18 11:57:57 · 331 阅读 · 0 评论 -
箭头函数与class函数使用Antd Form组件中 Form.create()的方法
class函数使用Form.create():class CustomizedForm extends React.Component {...代码}CustomizedForm = Form.create({})(CustomizedForm);箭头函数使用Form.create():const aaa =(form)=>{...代码}const Aaaa = Form.c...原创 2018-05-07 12:56:32 · 24517 阅读 · 3 评论 -
javascript 对象
JavaScript 定义对象的属性,有两种方法。// 方法一obj.foo = true;// 方法二obj['a' + 'bc'] = 123;上面代码的方法一是直接用标识符作为属性名,方法二是用表达式作为属性名,这时要将表达式放在方括号之内。但是,如果使用字面量方式定义对象(使用大括号),在 ES5 中只能使用方法一(标识符)定义属性。var obj = { foo: true...原创 2018-05-25 17:13:56 · 119 阅读 · 0 评论