摘要: 当需要验证的字段是数字类型的时候,需要使用 v-model.number 来绑定,否则验证的时候会当做字符串处理,结果就无法验证 <el-input v-model.number="tax.salary"></el-input> rules里面: salary: [{required: true, 阅读全文
posted @ 2020-12-23 21:49 iTao0128 阅读(8643) 评论(0) 推荐(1)
摘要: 使用axios.get方式发送无参请求 <script> axios.get('http://localhost:8080/student/getAllStudent').then(res=>{ console.log(res.data); }).catch(err=>{ console.log(e 阅读全文
posted @ 2020-12-23 07:59 iTao0128 阅读(1816) 评论(0) 推荐(0)
摘要: 当我们表格内文字过多时,它会自动换行显示,但是它改变了表格的行高,效果看起来有些不美观,所以我们把多余的字用悬浮显示。 更改: :show-overflow-tooltip="true"//el-table字体长度过长,浮动显示 代码中添加 <template> <el-table :data="t 阅读全文
posted @ 2020-12-22 20:17 iTao0128 阅读(10348) 评论(0) 推荐(1)
摘要: 1.使用cmd命令查看端口号占用情况,例如查看端口 8014,可以看出进程号为10728; netstat -ano | findstr 端口号 2.使用命令关闭 命令: taskkill -PID 进程号 -F 阅读全文
posted @ 2020-12-22 20:10 iTao0128 阅读(1865) 评论(0) 推荐(2)
摘要: //使用默认方式发送无参请求 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> < 阅读全文
posted @ 2020-12-22 08:01 iTao0128 阅读(425) 评论(0) 推荐(1)
摘要: public class Result<T> { private Integer code; private String msg; private T data; public Integer getCode() { return code; } public void setCode(Integ 阅读全文
posted @ 2020-12-21 19:56 iTao0128 阅读(204) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>vue实时显示当前时间显示</title> <link rel="stylesheet" href="../css/reset.css"> <script sr 阅读全文
posted @ 2020-12-19 08:43 iTao0128 阅读(4496) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="style 阅读全文
posted @ 2020-12-18 07:55 iTao0128 阅读(242) 评论(0) 推荐(0)
摘要: import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;imp 阅读全文
posted @ 2020-12-17 21:38 iTao0128 阅读(465) 评论(0) 推荐(0)
摘要: import com.alibaba.fastjson.JSON; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.Reques 阅读全文
posted @ 2020-12-17 21:33 iTao0128 阅读(181) 评论(0) 推荐(0)