工作中的解题思想(七)

  1. 从输入URL到页面加载发生了什么
    参考链接:https://juejin.im/post/5c1869ab6fb9a049f154207a
    从中涉及到cache-control、Expires、last-modified、Etag
    Http中Etag的理解,参考链接:https://blog.csdn.net/spring21st/article/details/5837953
    还会设计到If-None-Match的理解,参考链接:https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/If-None-Match
  2. localStorage本地存储的特点
    注意:localStorage是在本地存储,localStorage的数据不会跟随HTTP请求一起发送到服务器,只会在本地生效。
    参考链接:https://www.cnblogs.com/polk6/p/5684098.html
  3. 关于express中间件是什么
    中间件(middleware)就是一个函数,他可以访问请求对象(request object(req)),响应对象(response object(res))
    和web应用中处于请求-响应循环
    参考链接:https://expressjs.com/zh-cn/guide/using-middleware.html
  4. 关于express中next(‘route’)方法是来干什么的?
    参考链接1:https://expressjs.com/zh-cn/guide/error-handling.html
    参考链接2(对1有一个更详细的解答):https://segmentfault.com/q/1010000013146904
  5. 谷歌上的Octotree工具
    作用:当在github网页上时,会显示它相关的文件目录,点击相应的目录会跳转到相关的页面部分。
  6. POPPER.js插件
    element-ui中select里面会使用它来进行一个封装,如果自己想要自己写一个element ui中select选择框的话需要借用到它。
  7. git rebase和git merge的差异与相同点
    参考链接:http://jartto.wang/2018/12/11/git-rebase/
  8. eslint的一些报错
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    // a. 注销eslint的用法,直接写上/* eslint-disable */即可
    // b. 当使用console.log()时,控制台报Unexpected console statement (no-console),此时一般是eslint导致的,则我们可以通过
    // 禁用该特定行的规则来解决,如:
    // eslint-disable-next-line no-console
    console.log('hello world')
    // 注意必须要在console.log()相邻的上一行写上,比如下面这个写法也要报错:
    // eslint-disable-next-line no-console
    const a = 'hello'
    console.log('hello world')
    // /* eslint no-console:off */也是可以使用console.log()的,而且可以隔行使用
  9. vue.js中native修饰符的作用:给某个组件的根元素上监听一个事件,添加native修饰符就会起作用。
    参考链接:https://www.jb51.net/article/138846.htm
  10. vscode编辑器下常用的一些插件
    vscode编辑器下常用的一些插件