会员
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
程序员劝退师
博客园
首页
新随笔
联系
订阅
管理
2025年4月25日
docker 入门
摘要: # Docker ## 基本概念 Docker 是一个工具,可以将应用程序及其依赖环境打包成一个独立的、可移植的“容器”,让应用程序在任何地方都能快速、一致地运行。 - 镜像(Image): Docker 镜像是一个只读的模板,用来创建容器,简单来说就是为容器运行提供需要的程序、资源、配置等, 他在
阅读全文
posted @ 2025-04-25 15:14 程序員劝退师
阅读(21)
评论(0)
推荐(0)
2023年12月11日
typescript 参数声明,参数之前相互依赖,实例化时能明确传入参数,a参数的取值,依赖b参数的值
摘要: // 声明类型 export interface Iform{ Input: { text: string; }, Select: { options: any[]; }, Radio: { checkd: boolean; }, Switch: { checked: boolean; }, } /
阅读全文
posted @ 2023-12-11 17:34 程序員劝退师
阅读(37)
评论(0)
推荐(0)
2022年10月18日
vue中view-model双向绑定基础原理
摘要: 利用Object.defineProperty进行数据劫持 代码如下 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, i
阅读全文
posted @ 2022-10-18 14:21 程序員劝退师
阅读(43)
评论(0)
推荐(0)
2022年7月13日
new Vue()实例之后都做了什么
摘要: 1
阅读全文
posted @ 2022-07-13 09:42 程序員劝退师
阅读(22)
评论(0)
推荐(0)
2022年6月16日
css 箭头
摘要: 1、箭头 width: 25px; height: 25px; border-bottom: 8px solid #888; border-right: 8px solid #888; border-radius: 8px; transform: rotate( 45deg);
阅读全文
posted @ 2022-06-16 14:50 程序員劝退师
阅读(202)
评论(0)
推荐(0)
2022年5月18日
js slice splice 区别
摘要: 1、slice 用法 slice(start,end),返回值是一个新的数组 start 提取起始处的索引(从 0 开始),从该索引开始提取原数组元素。如果该参数为负数,则表示从原数组中的倒数第几个元素开始提取,slice(-2) 表示提取原数组中的倒数第二个元素到最后一个元素(包含最后一个元素)。
阅读全文
posted @ 2022-05-18 12:01 程序員劝退师
阅读(595)
评论(0)
推荐(0)
2022年5月16日
margin标记可以带一个、二个、三个、四个参数,各有不同的含义
摘要: margin标记可以带一个、二个、三个、四个参数,各有不同的含义。 margin: 20px;(上、下、左、右各20px。) margin: 20px 40px;(上、下20px;左、右40px。) margin: 20px 40px 60px;(上20px;左、右40px;下60px。) marg
阅读全文
posted @ 2022-05-16 19:35 程序員劝退师
阅读(290)
评论(0)
推荐(0)
2022年5月10日
vue router history路由模式,配置多入口webpack-dev-server配置实践
摘要: 1、问题由来,vue项目需要迁移history路由模式,但是涉及到多入口时,vue-router的总会把入口指向/下,导致其他入口无法访问,代码如下 // index入口 const router = new VueRouter({ base: '/', routes, mode: 'history
阅读全文
posted @ 2022-05-10 11:28 程序員劝退师
阅读(1754)
评论(0)
推荐(0)
2022年3月30日
npm,node版本管理工具
摘要: 一、npm使用nrm管理 registry 1、全局安装nrm: npm install -g nrm 2、查看nrm版本: nrm --version 3、查看可选择的npm源 nrm ls 4、切换使用的源: nrm use npm 5、添加一个源,reigstry为源名,url为源的路径 nr
阅读全文
posted @ 2022-03-30 13:51 程序員劝退师
阅读(472)
评论(0)
推荐(1)
2022年3月29日
eslint 下划线问题
摘要: Vue中遇到Identifier 'aa_bb' is not in camel case 有时候写vue会遇到如下错误, error Identifier 'aa_bb' is not in camel case 这是因为ESLint代码规范检测的要求,必须要求用骆驼式变量名,当我们写成下划线形式
阅读全文
posted @ 2022-03-29 10:54 程序員劝退师
阅读(598)
评论(0)
推荐(0)
下一页
公告