上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: npm 安装 推荐使用 npm 的方式安装,它能更好地和 webpack 打包工具配合使用。 npm i element-ui -S 引入 Element 你可以引入整个 Element,或是根据需要仅引入部分组件。我们先介绍如何引入完整的 Element。 完整引入 在 main.js 中写入以下 阅读全文
posted @ 2022-10-31 22:41 しゅおく 阅读(152) 评论(0) 推荐(0)
摘要: <template> <div class="nav"> <label for="">新部门</label><input v-model="location" type="text" /> <label for="">旧部门</label><input v-model="OldLocation" t 阅读全文
posted @ 2022-10-31 21:38 しゅおく 阅读(80) 评论(0) 推荐(0)
摘要: <template> <div class="nav"> <input v-model="location" type="text" /> <input @click="Deletes()" value="删除" type="button" /> <h4 v-if="font 4">成功</h4> 阅读全文
posted @ 2022-10-31 20:41 しゅおく 阅读(66) 评论(0) 推荐(0)
摘要: <template> <div class="Insert"> <label for="name">名称:</label><input v-model="name" type="text" /> <label for="location">部门:</label><input v-model="loc 阅读全文
posted @ 2022-10-31 14:25 しゅおく 阅读(36) 评论(0) 推荐(0)
摘要: 报错原因: 出现这种错误,说明sql语句执行成功,只是返回类型出了问题。 解决方法: insert、delete、update操作默认返回一个int类型的整数,将增删改的接口改成int或者void即可。 select操作返回的类型可以是自定义的Map或者是List(目前遇到的),这里等我总结了res 阅读全文
posted @ 2022-10-31 13:02 しゅおく 阅读(1589) 评论(0) 推荐(0)
摘要: 说到事务,那什么是事务呢? 事务(Transaction),一般是指要做的或所做的事情。 原子性(Atomicity):事务作为一个整体被执行,包含在其中的对数据库的操作要么全部被执行,要么都不执行。 一致性(Consistency):事务应确保数据库的状态从一个一致状态转变为另一个一致状态。一致状 阅读全文
posted @ 2022-10-31 12:33 しゅおく 阅读(2118) 评论(0) 推荐(0)
摘要: <template> <div class="nav"> <input v-model="name" type="text" /> <button @click="Delete()">查询</button> </div> </template> <script> import axios from 阅读全文
posted @ 2022-10-30 22:23 しゅおく 阅读(91) 评论(0) 推荐(0)
摘要: { 注意驼峰命名法,不然会报错 } 1.在Views文件夹下创建Vue路由文件,例如: <template> </template> <script> </script> template:表示html结构区域,script表示交互区域,style:表示装饰区域 2.完成以后,要把vue文件命名导出 阅读全文
posted @ 2022-10-30 01:58 しゅおく 阅读(172) 评论(0) 推荐(0)
摘要: 原因: ​​eslint​​代码检查到你注册了组件但没有使用,然后就报错了。比如代码: 比如​​Vue​​​中注册了​​File​​组件,而实际上却没有使用到(直接取消注册为好): ... import File from "../../components/file"; export defaul 阅读全文
posted @ 2022-10-30 01:39 しゅおく 阅读(1325) 评论(0) 推荐(0)
摘要: Vue: v-bind 绑定事件; el:是挂起的含义,“”里填类名; <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE 阅读全文
posted @ 2022-10-29 20:34 しゅおく 阅读(23) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页