vue watch //我们想要一开始就让他执行最初绑定的函数watch: { firstName: { handler(newName, oldName) { this.fullName = newName + ' ' + this.lastName; }, // 代表在wacth里声明了firstName这个方法之后立即先去执行handler方法...
git commit之后,想撤销commit 写完代码后,我们一般这样git add . //添加所有文件git commit -m "本功能全部完成" 执行完commit后,想撤回commit,怎么办? 这样凉拌:git reset --soft HEAD^ 这样就成功的撤销了你的commit注意,仅仅是撤回commit操作,您写的代码仍然保留。...
typescript 类型映射 (ReadOnly、Partial) 有时候需要一个类型,是依赖于上一个类型但是,对属性的要求去不同interface Person{ name: string; agent: number;}type Person2 = Readonly<Person>;type Person3 = Partial<Person>;class Test { ...
git stash 常用git stash命令:(1)git stash save "save message" : 执行存储时,添加备注,方便查找,只有git stash 也要可以的,但查找时不方便识别。(2)git stash list :查看stash了哪些存储(3)git stash show :显示做了哪些改动,默认show第一个存储,如果要显示其他存贮,后面加st...
vue 自定义指令 bind:只调用一次,指令第一次绑定到元素时调用。在这里可以进行一次性的初始化设置。inserted:被绑定元素插入父节点时调用 (仅保证父节点存在,但不一定已被插入文档中)。update:所在组件的 VNode 更新时调用,但是可能发生在其子 VNode 更新之前。指令的值可能发生了改变,也可能没有。但是你可以通过比较更新前后的值来忽略不必要的模板更新 (详细的钩子函数参数...
节流防抖 https://www.cnblogs.com/fsjohnhuang/p/4147810.html转载于:https://www.cnblogs.com/smzd/p/10943002.html
v-slot vue2.6新增指令使用指南 子组件<template> <div class="wrapper"> <slot name="demo" :msg="msg" text="this is a slot demo , ">this is demo slot.</slot> </div></template...
mac 完全卸载vscode 原文分隔线======================while writing go this morning, I found that the wrong code are not under lined by red line This is really difficult for me and time consuming to keep writing. Aft...
none module.exports = { root: true, env: { node: true }, extends: ['plugin:vue/essential', '@vue/prettier'], rules: { 'no-console': process.env.NODE_ENV === 'production' ? '...
psql 命令 (1)使用命令行连接数据库psql -U postgres -h localhost -p 5433(2)列出所有的数据库\l -- 查看所有数据库 (3)进入某个数据库\c name -- name是表名 (4)列出数据库的所有数据表和视图\d -- 列出所有的数据表和视图\dt\d tablename删除表...
shell Shell 是一个程序,一般都是放在/bin或者/usr/bin目录下,当前 Linux 系统可用的 Shell 都记录在/etc/shells文件中。/etc/shells是一个纯文本文件,你可以在图形界面下打开它,也可以使用 cat 命令查看它。通过 cat 命令来查看当前 Linux 系统的可用 Shell:$ cat /etc/shells/bin/sh/...
ps 命令 ps 为我们提供了进程的一次性的查看,它所提供的查看结果并不动态连续的;如果想对进程时间监控,应该用 top 工具。 kill 命令用于杀死进程。 linux上进程有5种状态: 1. 运行(正在运行或在运行队列中等待) 2. 中断(休眠中, 受阻, 在等待某个条件的形成或接受到信号) 3. 不可中断(收到信号不唤醒和不可运行, 进程必须等待直到有...
后端大佬给我配置的deploy serves文件以便学习 servesapiVersion: v1kind: Servicemetadata: labels: com.wise2c.service: ui-ll-2 com.wise2c.stack: wisecloud-controller name: ui-ll-2 namespace: wisecloud-controllerspe...
eslint 规则 "off"或0- 关闭规则"warn"或1- 将规则作为警告打开(不影响退出代码)"error"或2- 将规则作为错误打开(触发时退出代码为1) 转载于:https://www.cnblogs.com/smzd/p/10844161.html...
我的.eslintrc.js module.exports = { root: true, env: { node: true }, extends: ["plugin:vue/essential", "@vue/prettier"], rules: { "no-console": process.env.NODE_ENV === "production" ? "...
shell命令 删除ctrl + d 删除光标所在位置上的字符相当于VIM里x或者dlctrl + h 删除光标所在位置前的字符相当于VIM里hx或者dhctrl + k 删除光标后面所有字符相当于VIM里d shift+$ctrl + u 删除光标前面所有字符相当于VIM里d shift+^ctrl + w 删除光标前一个单词相...