sundjly
sundjly
自定义的组件为: ``` import React from 'react'; import { ReactComponent, Overlay } from 'rc-bmap'; const container = { width: 53, height: 53, border: '3px solid red', borderRadius:'50%' }; @ReactComponent class CustomOverlay...
时间很快,2019的目标大部分都还没有完成,继续再接再厉! ### 以下目标争取到中高级水平 1. node 2. Typescript (进行中) 3. Rx.js 4. Angular 5. Spring Cloud (当然要先学习 java) ### 目标 1. 了解 babel 具体操作 https://cnodejs.org/topic/5a9317d38d6e16e56bb808d1 2. 尽量多的翻译 medium 的文章(暂定一个月两篇) 3. react...
1. 前端开发的安全建议:https://hackernoon.com/10-security-tips-for-frontend-developers-oi4624ld 2. 实现了一个Chip-8语言解释器,对理解计算机体系结构很有帮助:https://www.taniarascia.com/writing-an-emulator-in-javascript-chip8/ 3. react 性能优化:https://addyosmani.com/blog/profiling-react-js/
1. 判断 web 平台 ``` const detectDeviceType = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? 'Mobile' : 'Desktop'; // 事例 detectDeviceType(); // "Mobile" or "Desktop" ``` 2. 缓存函数: ``` export const cached...
1.[开发者必读篇 | Web漏洞防护指南](https://mp.weixin.qq.com/s?__biz=Mzg2NTA4OTUwOQ==&mid=2247485466&idx=1&sn=56e59deff99f3c547c9766f453a72960&chksm=ce5e2a90f929a38674481bca658a6cb95973fccb4ecd43879a04f7f34567cc1960ae7a073a52&xtrack=1&scene=0&subscene=93&clicktime=1559174445&ascene=7&device) - SQL 注入 - XSS攻击 - CSRF攻击 - URL跳转漏洞。 2.
1. [深入理解浏览器的缓存机制](https://www.jianshu.com/p/54cc04190252) 主要有:一些概念,强缓存,协商缓存 ETag、CacheControl、Expires 2. [都 2019 年了,还问 GET 和 POST 的区别](https://www.jianshu.com/p/6902be8133db): - GET 用于获取信息,是无副作用的,是[幂等的](https://www.cnblogs.com/weidagang2046/archive/2011/06/04/idempotence.html),且可缓存 - POST 用于修改服务器上的数据,有副作用,非幂等,不可缓存 其他什么安全性,传输限制以及传输数据方法都是不正确的 3. 比较好的[介绍缓存的流程图](https://cloud.tencent.com/developer/article/1346293),来自腾讯云社区  http缓存 > [举个例子](https://zhuanlan.zhihu.com/p/23299600?refer=study-fe):浏览器第一次请求图片 a,服务器返回完整文件(以及附带信息,Etag 是对 a 文件的编码[一般 md5],只要...
[利用babel(AST)优雅地解决0.1+0.2!=0.3的问题](https://juejin.im/post/5ccfa5be51882540407a1bbc?utm_source=gold_browser_extension#heading-7)
[无障碍 Web](https://mp.weixin.qq.com/s/3QNXBpGB0ZiroV8OGnXCbA)
面试之 js基础
# 学习 1. 这里强烈推荐 [冴羽大大的blog](https://github.com/mqyqingfeng/Blog),写得很好,回过头去细细看,收获颇多 问题1: ``` if([2] > 1){console.log('猜猜 我能不能打印出来!')} new function(){console.log(this)} ``` 问题2: ``` const foo = { bar: function () { console.log(this) } } (foo.bar)(); // {bar:...
1. 看到的比较好介绍 react 中[父子组件之间的生命周期的关系](https://imweb.io/topic/5b14d5ded4c96b9b1b4c4eaa) 2. react 源码分析 -- 关注一下 [Dan 的博客](https://overreacted.io/) - [reactjs源码分析-上篇(首次渲染实现原理)](https://github.com/purplebamboo/blog/issues/2) - [前端快报之 react 解析](https://zhuanlan.zhihu.com/p/52646611) - [MVVM 源码解析 ](https://zhuanlan.zhihu.com/p/49543190) - [YouTube 中 React Fiber 的介绍](https://www.youtube.com/watch?v=VLAqywvHpD0) - [react 源码剖析系列...