当前位置:网站首页>5.19今日学习
5.19今日学习
2022-08-02 03:23:00 【Ww597】
1.要做列表页的话可以使用两层v-for
2. watch可以用来监听路由传参的参数 如果参数发生变化可以调用方法
3.如果已经定义好了接口 直接用方法名调用
4.出现请求拦截次数限制的话在白名单加入限制的接口
5.el-tabs 便签可以使用@tab-click="handleClick"来调用接口并返回每一项的数据
6. sync修饰符的作用:props的单向数据流特点,也即父组件通过props向子组件传值,但子组件不能直接改props里面的值。当一个子组件改变了一个 prop 的值时,这个变化也会同步到父组件中所绑定。实现父子组件的双向绑定 (用于弹窗)
this.$emit(“Update:name”,value) 在子组件修改name值同步更新到父组件绑定的name值
子组件的dialog改变,父组件的RegisterDialog值改变为this.RegisterDialog的值
7.表单校验的prop和v-model绑定的值需要一致
8.可以放在同一个col列中
9.el-input可以设置前缀后缀
10.forEach没有返回值,只做遍历,map有返回值返回一个新数组
Map还可以返回任意想要的数据
11. 对后端传值进行赋值给已经定义好的对象值
(1)在接受属性后处理
首先将detailDate赋值给 RegisterFormData,在将detailData的某个值赋值给RegisterFormData的属性
(2)在传值前处理
边栏推荐
猜你喜欢
解决glob()返回文件排序不一致问题&onnx本地按照安装方法
利用 nucleo stm32 f767zi 进行USART+DMA+PWM输入模式 CUBE配置
DOM操作---放大镜案例
Cut out web icons through PS 2021
The querystring module
Problems when yolov5 calls ip camera
Cloud server installation and deployment of Nacos 2.0.4 version
环形链表---------约瑟夫问题
UserWarning:火炬。meshgrid:在以后的版本中,它将被要求通过索引ing argu
oracle内连接和外连接
随机推荐
docker 安装 sqlserver中的坑点
SOCKS5
np.isnan ()
js作用域与闭包
AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
基本运算符
PCL—point cloud data segmentation
getattr()函数解析
AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'
URL URL
Common methods of js array deduplication
Advanced gradient of skeleton effect, suitable for waiting for pictures
getattr() function analysis
[Learning Records of Boxue Valley] Super summary, share with heart | Software Testing Interface Testing Basics
canvas--pie chart
Living to detect the Adaptive Normalized Representation Learning for GeneralizableFace Anti - Spoofing reading notes
require模块化语法
npm--package.json---require
函数提升和变量提升
DOM manipulation---magnifying glass case