会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
momo-倩倩
博客园
首页
新随笔
联系
订阅
管理
2018年5月25日
react state为数组时插入值
摘要: react state为数组时,如何插入值。在react里,一切皆是状态state,如果想通过改变state修改渲染效果,只能yongsetState。但是setState又是key:value格式,又不能在val这里运行函数。我最开始是这么想的。 在外边把值运算好,然后再赋值进去。但我当时就觉得,
阅读全文
posted @ 2018-05-25 13:35 momo-倩倩
阅读(1907)
评论(0)
推荐(0)
编辑
移动端rem布局
摘要: !function (window) { /* 设计图文档宽度 */ var docWidth = 750; var doc = window.document, docEl = doc.documentElement, resizeEvt = 'orientationchange' in wind
阅读全文
posted @ 2018-05-25 11:56 momo-倩倩
阅读(127)
评论(0)
推荐(0)
编辑
vue--http请求的封装--token
摘要: export const FetchHandler = function (url,opt) { let paramStr = ''; let token = ''; for(key in opt){ if (opt[key] !== ''){ if (typeof opt[key] 'object
阅读全文
posted @ 2018-05-25 11:07 momo-倩倩
阅读(3291)
评论(0)
推荐(0)
编辑
vue--http请求的封装--session
摘要: export function Fecth (url, data, file, _method) { if (file) { // 需要上传文件 return new Promise((resolve, reject) => { axios({ url: url, data: data, heade
阅读全文
posted @ 2018-05-25 11:03 momo-倩倩
阅读(1351)
评论(0)
推荐(0)
编辑
常用的工具方法的封装
摘要: import {Fecth} from '@/assets/js/http'import {codeState} from '@/assets/js/code'/**************************** *hasClass * * 判断是否存在某个class * obj:原生dom
阅读全文
posted @ 2018-05-25 11:01 momo-倩倩
阅读(614)
评论(0)
推荐(0)
编辑
公告