会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Better-HTQ
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
18
下一页
2023年4月4日
JS 字符串补0
摘要: padStart 用另一个字符串填充当前字符串(如果需要的话,会重复多次),以便产生的字符串达到给定的长度。从当前字符串的左侧开始填充。 语法 padStart(targetLength) padStart(targetLength, padString) 参数 targetLength 当前字符串
阅读全文
posted @ 2023-04-04 10:38 Better-HTQ
阅读(1459)
评论(0)
推荐(0)
2023年3月31日
Vue3 深度选择器原理
摘要: 一、Demo <!-- 补录身高与体重 --> <script lang="ts" setup> import { ref } from 'vue'; const isShow = ref(true); const height = ref(); const weight = ref(); </sc
阅读全文
posted @ 2023-03-31 19:34 Better-HTQ
阅读(264)
评论(0)
推荐(0)
2023年3月20日
package.json配置说明文档(翻译)
摘要: Description 这份文档是您所需要了解的关于软件包中所需要的内容的全部内容。它必须是JSON,而不仅仅是JavaScript字面量。 本文档中描述的许多行为都受到config中描述的配置设置的影响。 name 如果您计划发布包,那么package.json中最重要的内容是name和versi
阅读全文
posted @ 2023-03-20 16:45 Better-HTQ
阅读(90)
评论(0)
推荐(0)
2023年3月17日
Vetur 配置html自动分析和补全
摘要: settings.json "vetur.experimental.templateInterpolationService": true
阅读全文
posted @ 2023-03-17 13:29 Better-HTQ
阅读(116)
评论(0)
推荐(0)
2023年3月10日
Git ^ 和 ~ 的区别
摘要: 我们可以看到,最新的commit为HEAD,那么HEAD的前一个commit就为HEAD1,HEAD的前两个commit就为HEAD2。。。 注意从HEAD3上新开了一个分支,并出现一个蓝色的commit。之后进行merge操作,蓝色的commit和HEAD2合并成一个新的commit:HEAD~1
阅读全文
posted @ 2023-03-10 10:10 Better-HTQ
阅读(53)
评论(0)
推荐(0)
2023年2月24日
Redux 与 react-redux 使用总结
摘要: Redux = Reducer + Flux 1. redux 基本使用 1.1 安装 安装 redux npm install redux 安装 redux-thunk(如需支持异步 action) npm install redux-thunk 1.2 使用示例代码 工程目录 src ├─ co
阅读全文
posted @ 2023-02-24 19:21 Better-HTQ
阅读(15)
评论(0)
推荐(0)
React 的生命周期
摘要: Initialization setup props and state Mounting componentWillMount render componentDidMount Updation props 发生变化 componentWillReceiveProps // 1.从父组件接收参数
阅读全文
posted @ 2023-02-24 17:34 Better-HTQ
阅读(21)
评论(0)
推荐(0)
2023年2月20日
block 子元素层级问题
摘要: 原始状态 <html> <head> <meta charset="utf-8"> <style> #main { width:300px; height:300px; border:1px solid black; } .a1, .a3 { height: 50px } .a2 { height:
阅读全文
posted @ 2023-02-20 15:54 Better-HTQ
阅读(24)
评论(0)
推荐(0)
2023年2月19日
react项目搭建
摘要: 全局安装脚手架 npm install -g create-react-app 创建项目 npx create-react-app my-app 运行项目 cd my-app npm start
阅读全文
posted @ 2023-02-19 16:09 Better-HTQ
阅读(26)
评论(0)
推荐(0)
2023年2月8日
《代码整洁之道》 读书笔记 一、整洁代码
摘要: 1. 整洁代码 1.1 要有代码 代码不再是问题;我们应当关注模型和需求。代码很快就能自动产出。这种言论是不正确的。 因为代码呈现了需求的细节,在某些层面上,这些细节无法被忽略或抽象。 即使将来语言的抽象程度继续提升,那么用这种语言开发也同样是代码。同样需要严谨、规范、精确和详细。 1.2 糟糕的代
阅读全文
posted @ 2023-02-08 20:50 Better-HTQ
阅读(110)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
18
下一页
公告