nuxt 和 vue 的区别

函数 变量提升

proto prototype 原型链的讲解

  1. var b = 13
  2. function b(){
  3. b = 5;
  4. console.log(b);
  5. }
  6. b() // Uncaught TypeError: b is not a function
  1. H5由原始的spa模式切换到mpa模式,因为考虑App内部无过多的页面切换, 首屏加载速度的原因觉得mpa的模式更适合我们。 看下mpa的配置。

  2. vue 底层原理?

  3. vite mpa?

  4. Ts 泛型, interface 和 type的区别

  5. es6 - es10

  6. git常规, 回退, 合并commit。

  7. 界面搭建: config配置组件名和组件可编辑属性,通过 component :is 控制组件渲染。

  8. plugin 和 loader的区别。loader用作转换器,转换某个文件比如sccs转为css文件 ,plugin作用是扩展webpack的 监听webpack时间执行任务。

  9. ts启动 优化 thread-loader 预加载耗时的loader(babel, sass)

  10. 构建优化 ts-loader 取消类型检查 fork-ts-checker-webpack-plugin单独的进程上运行类型检查器
  1. 1. 开发h5遇到的问题 ios对时间格式解析-显示NaN,支持 / 使用replace(/-/g,'/')。
  2. 2. 对于ios form post提交 target="_blank" 时会丢失参数。
  3. 3. ios 对于父集存在transform position:fixed; 会失效。
  4. 4. ios滚动失效或者卡顿 -webkit-overflow-scrolling: touch; touch-action: manipulation;
  5. 5. 适配刘海屏 必须设置 viewport-fit=cover constant: 针对 iOS < 11.2 以下系统, env: 针对于 iOS >= 11.2 的系统
  6. 6. rem适配 postcss-pxtorem插件 amfe-flexible 搭配。
  1. 回文字符串
  2. str = 'cbaabc'
  3. function a(s){
  4. if(typeof s !== 'string') return false;
  5. const len = s.length;
  6. for (let i = 0; i < len / 2; i++){
  7. if(str[i] !== str[len - i - 1]){
  8. return false;
  9. }
  10. }
  11. return true
  12. }
  13. a(str);
  1. 原型链 ```javascript 一个普通的函数被new之后产生构造函数

实例的 proto 指向构造函数的prototype 实例的constructor指向构造出他的构造函数 实例的proto和函数的prototype constructor 指向构造函数

let a = new A() a.proto === A.prototype a.constructor === A a.proto.constructor === A A.prototype.constructor === A

16-18 13保底 500 d5高级

```