摘要: 1、点击取消按钮,不触发表单校验 <form @submit="onSubmit"> <van-button type="info" native-type="button" :disabled="disabled" @click="handleBack" >取消</van-button> <van 阅读全文
posted @ 2024-01-26 15:08 唏嘘- 阅读(152) 评论(0) 推荐(0) 编辑
摘要: css中包含3中元素:块状元素、内联元素(又叫行内元素)和内联块状元素。 一、常用的块级元素(block): <div>、<p>、<h1>...<h6>、<ol>、<ul>、<dl>、<table>、<address>、<blockquote> 、<form> 主要特点:display:block 阅读全文
posted @ 2024-01-26 14:49 唏嘘- 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、使用 beforeRouteLeave 来记录路由跳转之前滚动条的位置 beforeRouteLeave(to, from, next): 离开路由之前执行的函数,可用于页面的反向传值,页面跳转; beforeRouteLeave(to, from, next) { console.log('b 阅读全文
posted @ 2024-01-26 14:12 唏嘘- 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1、在form表单上 加上 :key=“formKey” <van-form colon ref="form" :key="formKey"> </van-form> 2、在data定义 formKey:0 data() { return { formKey: 0, } }, 3、在 activat 阅读全文
posted @ 2024-01-26 13:33 唏嘘- 阅读(386) 评论(0) 推荐(0) 编辑