摘要: 效果展示: vue3代码实现: <script setup lang="ts"> import { ref } from "vue"; // 原始数据,这里通常是从后端接口得来的数据 let itemList = ref([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); /** * 阅读全文
posted @ 2023-01-05 16:17 菌子乐水 阅读(121) 评论(0) 推荐(0) 编辑
摘要: inputcmp.vue (script setup方式): <template> <span>{{ msg }}</span> <input type="text" :value="modelValue || zs" @input="inputemit" @blur="bluremit" /> < 阅读全文
posted @ 2022-03-02 14:46 菌子乐水 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Talk is cheap. Show me the code <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"  阅读全文
posted @ 2021-08-03 23:50 菌子乐水 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 代码走起: <!DOCTYPE html> <html lang="zh_CN"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <ti 阅读全文
posted @ 2021-08-02 17:53 菌子乐水 阅读(1118) 评论(0) 推荐(0) 编辑
摘要: 一个带有路由的react项目中使用react-redux的方法: 下载项目demo压缩包:https://files.cnblogs.com/files/shidawang/react-app.7z 1根目录的index.js文件: import React from 'react' //引入rea 阅读全文
posted @ 2021-01-14 16:59 菌子乐水 阅读(167) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_33463449/article/details/103928634 删除:如果不想使用某个代码块,我们只需找到这个代码块的书写位置,然后把它删掉就好了。但是我们如何删除代码块文件呢。首先我们需要找到的路径。 通过这两种方式找到文件,然后我们可以重命 阅读全文
posted @ 2020-12-30 15:47 菌子乐水 阅读(5458) 评论(0) 推荐(0) 编辑
摘要: 文件=>首选项=>键盘快捷方式: 在该文件中,用以下方式配置快捷键对应的命令,比如: // 将键绑定放在此文件中以覆盖默认值 [ { "key": "ctrl+1", "command": "extension.jumptotemplate" }, { "key": "ctrl+2", "comma 阅读全文
posted @ 2020-12-25 11:32 菌子乐水 阅读(166) 评论(0) 推荐(0) 编辑
摘要: HTML代码示例: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <t 阅读全文
posted @ 2020-12-17 15:51 菌子乐水 阅读(2843) 评论(0) 推荐(0) 编辑
摘要: 如果使用iview中的tooltip组件,并且tooltip组件加上了定位,那么想要让它自动换行,就得这么写,例子如下: <FormItem label="密码" prop="password"> <Tooltip max-width="200" style="position:absolute;t 阅读全文
posted @ 2020-12-17 15:43 菌子乐水 阅读(1875) 评论(0) 推荐(0) 编辑
摘要: 1在main.js文件中写入以下代码: Vue.prototype.$keyBoard = function (vm, methodName, code) { document.onkeydown = function () { let key = window.event.keyCode; if  阅读全文
posted @ 2020-12-17 15:33 菌子乐水 阅读(3578) 评论(3) 推荐(1) 编辑