自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 javascript 对象

JavaScript 定义对象的属性,有两种方法。// 方法一obj.foo = true;// 方法二obj['a' + 'bc'] = 123;上面代码的方法一是直接用标识符作为属性名,方法二是用表达式作为属性名,这时要将表达式放在方括号之内。但是,如果使用字面量方式定义对象(使用大括号),在 ES5 中只能使用方法一(标识符)定义属性。var obj = { foo: true...

2018-05-25 17:13:56 118

原创 笔记--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 330

原创 箭头函数与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 24516 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 288

原创 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 137

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除