上一页 1 2 3 4 5 6 ··· 21 下一页

2022年10月6日

受控组件,双向绑定

摘要: class Comp extends React.COmponent { state = { value: '' } change = (e) => { this.setState({ value = e.target.value }) } render() { return <input valu 阅读全文

posted @ 2022-10-06 17:28 In-6026 阅读(15) 评论(0) 推荐(0) 编辑

2022年10月5日

装饰器

摘要: ###装饰器就是一个方法,可以注入到,类、方法、属性参数上来扩展他们的功能 ###类装饰器(无法传参) (function () { function fun1(target: any): void { target.prototype.name = "张三"; target.class = "hu 阅读全文

posted @ 2022-10-05 14:59 In-6026 阅读(14) 评论(0) 推荐(0) 编辑

2022年10月4日

tsconfig,常用配置

摘要: /* https://www.bilibili.com/video/BV1pf4y1U7ij?p=27&spm_id_from=pageDriver&vd_source=fd5425bfe2e6c3a48b1d00c8b84349a2 */ { /* 外层主要是编译目录,输出目录的配置 */ //只 阅读全文

posted @ 2022-10-04 15:24 In-6026 阅读(170) 评论(0) 推荐(0) 编辑

query、parmas和body的区别

摘要: ###query,get请求传递参数时使用,url后以url?id的形式 www.xy.com?name=LLC query就是 { name: LLC } ###parmas,url后以url/:id的形式 www.xy.com/user/33256 /:id parmas就是{ id: 3325 阅读全文

posted @ 2022-10-04 00:05 In-6026 阅读(154) 评论(0) 推荐(0) 编辑

2022年10月3日

vscode插件REST Client,代替postman

摘要: 如果只是简单的请求工作的话,这个插件也许跟方便 ##使用方式 ###准备工作 安装该插件 创建一个test.http(名字随意,后缀.http)文件 ###朴素的请求 后面必须有协议版本号 HTTP/1.1 写好后点击上面的“小字”,Send Request post请求也是这样的写法 ###传递数 阅读全文

posted @ 2022-10-03 23:01 In-6026 阅读(763) 评论(0) 推荐(0) 编辑

2022年9月27日

Vue.use

摘要: Vue.use(plugin: Object|Function) 当plugin是Object时,会找plugin中的install方法(plugin对象中必须提供install方法),再自动传入参数Vue,并执行该install方法 当plugin是Function时,会自动传入参数Vue,并执行 阅读全文

posted @ 2022-09-27 21:42 In-6026 阅读(27) 评论(0) 推荐(0) 编辑

2022年9月24日

htmlWebpackPlugin config

摘要: |name|describe|type|default| | | | | | |favicon|html图标|string|''| |title|创建的html的title|string|'Webpack App'| |meta|meta标签|{object}|{}| |base|配置base标签| 阅读全文

posted @ 2022-09-24 13:48 In-6026 阅读(68) 评论(0) 推荐(0) 编辑

plugins

摘要: 各个plugin的作用 ##个别不直观的plugin的解释: ###banner 用来添加注释,标注作品版权之类的(横幅) 但是和uglifyjsPlugin‘冲突’,因为uglifyjsPlugin会把所有注释都清理掉 阅读全文

posted @ 2022-09-24 13:48 In-6026 阅读(166) 评论(0) 推荐(0) 编辑

2022年9月13日

笔试题

摘要: ##html篇 html有nav这个标签 ##css篇 line-through 不是css属性 元素居中,如果外层是body就: <body> <div class="box"></div> </body> .box{ position: absolute; } // 第一种 { top: 0; 阅读全文

posted @ 2022-09-13 16:27 In-6026 阅读(8) 评论(0) 推荐(0) 编辑

2022年9月11日

navgateTo和redirectTo的区别

摘要: 来自:https://blog.csdn.net/changyana/article/details/125593906 阅读全文

posted @ 2022-09-11 01:04 In-6026 阅读(36) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 21 下一页

导航