会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yuan947022015
博客园
首页
新随笔
联系
订阅
管理
2023年12月21日
90%的面试问题(前端)
摘要: 1.什么是MVVM,MVC模型 MVC框架(Model-View-Controller,模型-视图-控制器): Model(模型):代表数据和业务逻辑,负责数据的存储和处理。 View(视图):是用户界面的表示,通常是UI元素,例如网页、图形用户界面等。 Controller(控制器):是Model
阅读全文
posted @ 2023-12-21 19:50 Y~~~
阅读(88)
评论(0)
推荐(0)
2023年9月24日
整合部分
摘要: 1.说一下 http 和 https (1)http和https基本概念 http:超文本传输协议,是一种网络协议,遵从TPC原则。 https:是以安全为目标的http协议,在http的基础上进行了ssl加密,ssl运用在传输层。 (2)http和https区别 http传输是未加密的,也就是说是
阅读全文
posted @ 2023-09-24 17:28 Y~~~
阅读(88)
评论(0)
推荐(0)
2023年9月23日
vue3的面试题
摘要: 1. 什么是Vue3? Vue3有哪些新增特性?答:Vue3是Vue.js框架的最新版本,它增加了很多新特性,包括Composition API、Teleport、Suspense 和Fragment等。 2. Vue3 Composition API是什么?它的作用是什么?答:Vue3 Compo
阅读全文
posted @ 2023-09-23 11:16 Y~~~
阅读(1800)
评论(0)
推荐(0)
React面试
摘要: 1.什么是虚拟DOM?虚拟DOM是真实DOM在内存中的表示,ul的表示形式保存在内存中,并且与实际的DOM同步,这是一个发生在渲染函数被调用和元素在屏幕上显示的步骤,整个过程被称为调和 2.类组件和函数组件之间的区别是什么?类组件可以使用其他特性,如状态和生命周期钩子,并且他有this 函数组件只能
阅读全文
posted @ 2023-09-23 11:14 Y~~~
阅读(40)
评论(0)
推荐(0)
全面分析 Vue 的 computed 和 watch 的区别
摘要: 全面分析 Vue 的 computed 和 watch 的区别 一、computed介绍 computed 用来监控自己定义的变量,该变量在 data 内没有声明,直接在 computed 里面定义,页面上可直接使用。 //基础使用 {{msg}} <input v-model="name" />
阅读全文
posted @ 2023-09-23 10:55 Y~~~
阅读(4141)
评论(0)
推荐(0)
2023年9月22日
关于vue的axios请求的封装
摘要: 先加载axios import axios from 'axios'; import Vue from 'vue'; import Qs from 'qs'; import urls from './url' import { Message } from 'element-ui'; //用来设置接
阅读全文
posted @ 2023-09-22 14:53 Y~~~
阅读(48)
评论(0)
推荐(0)
文件上传
摘要: beforeUploadFile(file) { const formData = new FormData(); formData.append("files", file); let params = { data: formData } uploadFile(params).then(res
阅读全文
posted @ 2023-09-22 14:43 Y~~~
阅读(10)
评论(0)
推荐(0)
关于前端echart图大小联动
摘要: import React, { Component } from "react"; import * as echarts from 'echarts'; class Chart1 extends Component { constructor(props) { super(props); this
阅读全文
posted @ 2023-09-22 14:33 Y~~~
阅读(35)
评论(0)
推荐(0)
关于文件下载的封装
摘要: import axios from 'axios' const isIE = () => navigator.userAgent.toLowerCase().indexOf('trident') > -1; //判断是否为IE浏览器 // 文件下载 export async function dow
阅读全文
posted @ 2023-09-22 14:28 Y~~~
阅读(23)
评论(0)
推荐(0)
umi-Request请求封装
摘要: /** * request 网络请求工具 * 更详细的 api 文档: https://github.com/umijs/umi-request */ import { extend } from 'umi-request'; import { notification, message } fr
阅读全文
posted @ 2023-09-22 14:22 Y~~~
阅读(613)
评论(0)
推荐(0)
下一页
公告