当前位置:网站首页>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)在传值前处理

边栏推荐
- Circular linked list---------Joseph problem
- 【手把手带你学nRF52832/nRF52840 · (1)开发环境搭建】
- UserWarning:火炬。meshgrid:在以后的版本中,它将被要求通过索引ing argu
- canvas--pie chart
- querystring模块
- AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
- [Learning Records of Boxue Valley] Super summary, share with heart | Software Testing Interface Testing Basics
- 解决glob()返回文件排序不一致问题&onnx本地按照安装方法
- 远程调试、无cuDnn、自定义模块无法导入问题记录
- Cut out web icons through PS 2021
猜你喜欢

Phospholipid-polyethylene glycol-thiol, DSPE-PEG-Thiol, DSPE-PEG-SH, MW: 5000

Phospholipid-polyethylene glycol-azide, DSPE-PEG-Azide, DSPE-PEG-N3, MW: 5000

UserWarning:火炬。meshgrid:在以后的版本中,它将被要求通过索引ing argu

DSPE-PEG-Silane, DSPE-PEG-SIL, phospholipid-polyethylene glycol-silane modified active group

我的小笔记 =》其他东东

远程调试、无cuDnn、自定义模块无法导入问题记录

js基础知识

STM32 map文件解析

The querystring module

微信小程序云开发如何将页面生成为pdf?
随机推荐
String comparison size in MySQL (date string comparison problem)
__dirname
js basics
Problems when yolov5 calls ip camera
Usage of JOIN in MySQL
C语言入门小游戏—三子棋
Advanced gradient of skeleton effect, suitable for waiting for pictures
L1-020 帅到没朋友 (20分)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
排序学习笔记(二)堆排序
【面试】失败的一次面试
The difference between the knowledge question and answer session with the knowledge
mysql阶段总结
AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘/yolov5-5.0/models/commo
Redis简单学习笔记
微信小程序怎么批量生成带参数的小程序码?
JJWT tool class
这些JS题面试时一定要答对!
C语言 结构体定义方法
【我的创作纪念日】 3周年