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

边栏推荐
- STM32 map文件解析
- Problems when yolov5 calls ip camera
- querystring模块
- IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boo
- DSPE-PEG-Silane, DSPE-PEG-SIL, phospholipid-polyethylene glycol-silane modified active group
- js作用域与闭包
- nucleo stm32 h743 FREERTOS CUBE MX配置小记录
- display,visibility,opacity
- COCO数据集训练TPH-YoloV5
- JJWT tool class
猜你喜欢

微信小程序九宫格抽奖和转盘抽奖的实现

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

排序学习笔记(二)堆排序

parser = argparse.ArgumentParser() parsing

parser = argparse.ArgumentParser()解析

一个结构体 = 另一个结构体(同类型结构体之间可直接赋值操作)

kettle 安装与配置

Amazon sellers how to improve the conversion

mysql阶段总结

AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
随机推荐
C语言 十六进制整数字符串转十进制整数
String comparison size in MySQL (date string comparison problem)
JJWT tool class
ThunderBirde无法登录问题、pycharm调试一直收集数据、RuntimeError: CUDA error: device-side assert triggered等疑难杂症解决
querystring模块
sh: 1: curl: not found
Circular linked list---------Joseph problem
STM32 触发HardFault_Handler如何查找原因
debian 10 nat and routing forwarding
Redis simple study notes
npm--package.json---require
Dynamic proxy tool class
基本运算符
ssm various configuration templates
mysql阶段总结
Chapter 10 Clustering
The usage of json type field in mysql
debian 10 nat 与路由转发
Detailed explanation of the usage of exists in mysql
跨域问题解决