- 博客(5)
- 收藏
- 关注
原创 javascript 对象
JavaScript 定义对象的属性,有两种方法。// 方法一obj.foo = true;// 方法二obj['a' + 'bc'] = 123;上面代码的方法一是直接用标识符作为属性名,方法二是用表达式作为属性名,这时要将表达式放在方括号之内。但是,如果使用字面量方式定义对象(使用大括号),在 ES5 中只能使用方法一(标识符)定义属性。var obj = { foo: true...
2018-05-25 17:13:56
144
原创 笔记--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
361
原创 箭头函数与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
24562
3
原创 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
328
原创 react炸鸡
箭头函数绑定参数<a onClick={e => onClick(item.id,event)}><a/>html便签属性接参数,用单引号<img src={'http://www.xxx.cn/create?deviceCode='+item+'¬e=&isUseLogo=&width=&height='} alt=""/>dev...
2018-04-29 15:46:09
160
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人