2019年7月15日

摘要: <input type="file" accept="image/*;capture=camera"> 不加capture会打开两个 阅读全文
posted @ 2019-07-15 16:45 sameer的史迪仔 阅读(562) 评论(1) 推荐(0) 编辑

2019年4月17日

摘要: 阅读全文
posted @ 2019-04-17 18:40 sameer的史迪仔 阅读(169) 评论(0) 推荐(0) 编辑

2019年4月8日

摘要: 1.服务端渲染时无法获得环境变量的值,一直是undefined 2.ngnix做代理以后无法无法获取node设置的cookie 阅读全文
posted @ 2019-04-08 10:16 sameer的史迪仔 阅读(265) 评论(0) 推荐(0) 编辑

2019年3月28日

摘要: cors解决跨域问题,预请求被token监测干掉了 阅读全文
posted @ 2019-03-28 17:29 sameer的史迪仔 阅读(118) 评论(0) 推荐(0) 编辑

2019年3月14日

摘要: const now = new Date(); const nowTime = now.getTime() ; const oneDayTime = 24*60*60*1000 ; const arry = [-3,-2,-1,0,1,2,3]; const weekDate=[] for(let 阅读全文
posted @ 2019-03-14 12:04 sameer的史迪仔 阅读(282) 评论(0) 推荐(0) 编辑

2019年3月13日

摘要: 1.在didmount里面使用require引入 require.ensure([], (require) => { this.setState({ picker: require('./Picker.jsx') }) }); 2.在Picker组件中使用 module.exports暴露出来 re 阅读全文
posted @ 2019-03-13 17:25 sameer的史迪仔 阅读(720) 评论(0) 推荐(0) 编辑

2019年1月11日

摘要: .ballFather{ position: absolute; width: 15px; height: 15px; border-radius: 50%; transition: all 0.5s ... 阅读全文
posted @ 2019-01-11 11:10 sameer的史迪仔 阅读(317) 评论(0) 推荐(0) 编辑

2018年12月26日

摘要: 1.防抖:就是为函数添加一个定时器,延时多久以后触发,如果在这个时间内再次触发了这个函数,会把上一个定时器清除掉,并从新计时。使用场景:实时搜索,按钮防止重复点击; 使用定时器和闭包来实现。 阅读全文
posted @ 2018-12-26 14:50 sameer的史迪仔 阅读(122) 评论(0) 推荐(0) 编辑

2018年11月6日

摘要: 2018 大厂高级前端面试题汇总 木易杨 前端大全 今天 (给前端大全加星标,提升前端技能) 作者:木易杨 本人于7-8月开始准备面试,过五关斩六将,最终抱得网易归,深深感受到高级前端面试的套路。以下是自己整理的面试题汇总,不敢藏私,统统贡献出来。 面试的公司分别是:阿里、网易、滴滴、今日头条、有赞 阅读全文
posted @ 2018-11-06 20:36 sameer的史迪仔 阅读(199) 评论(0) 推荐(0) 编辑

2018年10月29日

摘要: var EventUtil = { //根据情况分别使用dom2 || IE || dom0方式 来添加事件 addHandler: function(element,type,handler) { if(element.addEventListener) { element.addEventListener(type,handler,fa... 阅读全文
posted @ 2018-10-29 12:43 sameer的史迪仔 阅读(824) 评论(0) 推荐(0) 编辑