摘要:
1.什么是MVVM,MVC模型 MVC框架(Model-View-Controller,模型-视图-控制器): Model(模型):代表数据和业务逻辑,负责数据的存储和处理。 View(视图):是用户界面的表示,通常是UI元素,例如网页、图形用户界面等。 Controller(控制器):是Model 阅读全文
摘要:
1.说一下 http 和 https (1)http和https基本概念 http:超文本传输协议,是一种网络协议,遵从TPC原则。 https:是以安全为目标的http协议,在http的基础上进行了ssl加密,ssl运用在传输层。 (2)http和https区别 http传输是未加密的,也就是说是 阅读全文
摘要:
1. 什么是Vue3? Vue3有哪些新增特性?答:Vue3是Vue.js框架的最新版本,它增加了很多新特性,包括Composition API、Teleport、Suspense 和Fragment等。 2. Vue3 Composition API是什么?它的作用是什么?答:Vue3 Compo 阅读全文
摘要:
1.什么是虚拟DOM?虚拟DOM是真实DOM在内存中的表示,ul的表示形式保存在内存中,并且与实际的DOM同步,这是一个发生在渲染函数被调用和元素在屏幕上显示的步骤,整个过程被称为调和 2.类组件和函数组件之间的区别是什么?类组件可以使用其他特性,如状态和生命周期钩子,并且他有this 函数组件只能 阅读全文
摘要:
全面分析 Vue 的 computed 和 watch 的区别 一、computed介绍 computed 用来监控自己定义的变量,该变量在 data 内没有声明,直接在 computed 里面定义,页面上可直接使用。 //基础使用 {{msg}} <input v-model="name" /> 阅读全文
摘要:
先加载axios import axios from 'axios'; import Vue from 'vue'; import Qs from 'qs'; import urls from './url' import { Message } from 'element-ui'; //用来设置接 阅读全文
摘要:
beforeUploadFile(file) { const formData = new FormData(); formData.append("files", file); let params = { data: formData } uploadFile(params).then(res 阅读全文
摘要:
import React, { Component } from "react"; import * as echarts from 'echarts'; class Chart1 extends Component { constructor(props) { super(props); this 阅读全文
摘要:
import axios from 'axios' const isIE = () => navigator.userAgent.toLowerCase().indexOf('trident') > -1; //判断是否为IE浏览器 // 文件下载 export async function dow 阅读全文
摘要:
/** * request 网络请求工具 * 更详细的 api 文档: https://github.com/umijs/umi-request */ import { extend } from 'umi-request'; import { notification, message } fr 阅读全文