01 2017 档案

摘要:import 'whatwg-fetch';export function fetchData(endpoint) { let myHeader = { headers: { "Authorisation": sessionStorage.getItem('openid'), "Accept" : 阅读全文
posted @ 2017-01-18 19:08 旧城旧城 阅读(308) 评论(0) 推荐(0)
摘要:class ImageUpload extends React.Component { constructor(props) { super(props); this.state = {file: '',imagePreviewUrl: ''}; } _handleSubmit(e) { e.pre 阅读全文
posted @ 2017-01-18 19:04 旧城旧城 阅读(999) 评论(1) 推荐(0)
摘要:const average = data=>data.map((item, idx, origin)=>Math.round(origin.slice(0,idx+1).reduce((a, b)=>a + b, 0) / (idx + 1)));1.用map遍历求值2.map中的第三个参数orig 阅读全文
posted @ 2017-01-08 12:03 旧城旧城 阅读(321) 评论(0) 推荐(0)
摘要:在命令查看自己的秘钥还是公钥 cat .ssh/id_rsa.pub/cat .ssh/id_rsa 阅读全文
posted @ 2017-01-01 16:05 旧城旧城 阅读(169) 评论(0) 推荐(0)