06 2020 档案

摘要:fetch在默认情况下, 不管是同域还是跨域ajax请求都不会带上cookie, 只有当设置了 credentials 时才会带上该ajax请求所在域的cookie, 服务端需要设置响应头 Access-Control-Allow-Credentials: true, 否则浏览器会因为安全限制而报错 阅读全文
posted @ 2020-06-15 17:25 杀生丸11 阅读(520) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/a0a399a04be2 阅读全文
posted @ 2020-06-09 19:31 杀生丸11 阅读(119) 评论(0) 推荐(0)
摘要:未优化前 优化后 记得要在服务器或者nginx配置相关压缩的文件类型,否则不会生效 阅读全文
posted @ 2020-06-09 19:23 杀生丸11 阅读(541) 评论(0) 推荐(0)
摘要:https://segmentfault.com/a/1190000012828879 https://www.jianshu.com/p/5a543a0284f6 https://foio.github.io/wepack-code-spliting/ https://www.jianshu.co 阅读全文
posted @ 2020-06-08 20:04 杀生丸11 阅读(133) 评论(0) 推荐(0)
摘要:1、需要设置移动端meta标签的加载问题,利用html 模板在head内部引入动态js, 关于js内部的rem判断问题, 较好的阐述了移动端的viewport问题 https://www.cnblogs.com/2050/p/3877280.html 阅读全文
posted @ 2020-06-01 17:59 杀生丸11 阅读(170) 评论(0) 推荐(0)