摘要: 导航 阅读全文
posted @ 2019-09-26 14:55 chen8840 阅读(205) 评论(0) 推荐(0) 编辑
  2023年7月18日
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0 阅读全文
posted @ 2023-07-18 10:46 chen8840 阅读(22) 评论(0) 推荐(0) 编辑
  2023年7月6日
摘要: 只需要父元素设置flex布局,子元素设置overflow: auto;即可 上代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content=" 阅读全文
posted @ 2023-07-06 15:11 chen8840 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 具体做法是让除了那个子元素以外,所有子元素都使用flex布局,让后再叠加一层flex-grow:1;width:0的inner布局 上代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv 阅读全文
posted @ 2023-07-06 14:24 chen8840 阅读(29) 评论(0) 推荐(0) 编辑
  2023年5月24日
摘要: # [HTTP 缓存](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Caching) # [Memory Cache 与 Disk Cache 介绍](https://juejin.cn/post/7177568033316012088) 阅读全文
posted @ 2023-05-24 10:48 chen8840 阅读(4) 评论(0) 推荐(0) 编辑
  2023年4月10日
摘要: 1.对错误的处理 日常使用中,点击按钮需要往后台发消息,为了不重复发消息,经常需要把点击事件做成subject,然后把发消息的过程做成switchMap,类似下面的写法 const subject = new rxjs.Subject(); subject.pipe( rxjs.operators. 阅读全文
posted @ 2023-04-10 16:02 chen8840 阅读(174) 评论(0) 推荐(0) 编辑
  2022年7月26日
摘要: 跨域需要后端需要设置响应的跨域头 如下 public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("*") .allowedMethods("POST", "GET" 阅读全文
posted @ 2022-07-26 17:09 chen8840 阅读(685) 评论(0) 推荐(0) 编辑
  2022年6月7日
摘要: BEM文档 BEM: A New Front-End Methodology 如何看待 CSS 中 BEM 的命名方式? Battling BEM CSS: 10 Common Problems And How To Avoid Them 编写模块化CSS:BEM 编写模块化的CSS:命名空间 阅读全文
posted @ 2022-06-07 15:08 chen8840 阅读(31) 评论(0) 推荐(0) 编辑
  2022年4月1日
摘要: <access origin="*" /> <preference name="scheme" value="http" /> 这里让cordova webview使用http协议链接本地文件,如果需要访问http协议的后台服务需要改下这里,如果访问https协议的后台服务不需要。 <meta ht 阅读全文
posted @ 2022-04-01 09:02 chen8840 阅读(178) 评论(0) 推荐(0) 编辑
  2022年3月25日
摘要: Angular常见问题:subscribe()还是 async 管道 ? 终极答案就在这里 Angular Development #10 – RouteReuseStrategy – Maintaining Component State on Navigation Angular Develop 阅读全文
posted @ 2022-03-25 17:20 chen8840 阅读(25) 评论(0) 推荐(0) 编辑
  2021年11月3日
摘要: 1.word-break: break-word与word-wrap: break-word的区别? 答:计算最小宽度(width: min-content)时有区别,word-break: break-word计算的是单个字符的宽度,word-wrap: break-word计算的是单个单词的宽度 阅读全文
posted @ 2021-11-03 00:24 chen8840 阅读(306) 评论(0) 推荐(0) 编辑