前端analysis | What,Why,Who,When,Where,How

《Performance》- 前端性能从js code优化开始

性能优化 performance lighthouse
性能优化从js规范开始 1.命名通俗易懂,知名达意2.结构不要过深 拆分代码,避免过多深入调用,函数结构化,相关代码存放一起,把逻辑和该逻辑处理的数据放在相近的位置,往往同时修改,不会遗漏 3.扩展性强 代码随时可拓展,且 不影响相关调用代码,封装成接口便于调用 4.删除无用code5 ...
Read more

《CDN》- cdn概要总结

docker CDN
CDN CDN(content Distribute Network) 内容分发网络。 互联网是铁路轨道和信号系统,万维网则是在铁路上运行的列车之一。而在铁路上,除了万维网这个高速列车以外,还有慢车、通勤列车、货运列车和专业维修列车等.不使用WWW的应用同样运行在互联网上,互联网的巨大远 ...
Read more

《typescript》- 精读typescript

ts
模块export default vs export export default 只能出现一次,export not export default ,xx 可以是{},function(){},and others export ,xx可以是{}, const str = ...
Read more

《Css3》- CSS进阶之BFC

js html css3
BFC Block Formatting Context (BFC),内部自成布局,隔绝与外部 形成方式 1.float 2.position: absolute\fixed 3.html本身 4.display: inline-block 5.display: table-cell 6. ...
Read more

《angular8》- angular本地json文件读取的2中方法

angular json
常有这样的需求,一个html,然后加载json文件,替代调用api,展示日志内容。默认当前用户已安装angular-cli,就不具体的介绍环境安装了。 环境安装mac环境下123brew install nvm nvm install v12.16.1npm i -g @angular/cl ...
Read more

《angular8》- angular8 graphQL实践

angular graphQL
安装1.with angular-cli 先创建angular项目,否则会出现如下错误: 1The add command requires to be run in an Angular project, but a project definition could not be fou ...
Read more
上一页 下一页