会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
>
echo "Welcome to My Tech Zone"
$ whoami
> Tech Explorer & Code Artist
$ ls social
>
GitHub
>
larryxue.dev
azoux
一个迷茫摸黑前行的人
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2023年7月26日
跨域iframe 配置fullscreen权限
摘要: 在新版本的 Chrome 等浏览器中,默认情况下禁止了跨域 iframe 开启全屏的权限。在 iframe 中,我们通常使用 `element.requestFullscreen()` 方法来进行全屏展示。根据 MDN 文档,为了让 iframe 展示全屏,我们需要配置 `allowfullscre
阅读全文
posted @ 2023-07-26 11:41 azoux
阅读(1963)
评论(0)
推荐(0)
2023年7月9日
如何在docker中创建postgresql数据库并使用prisma进行连接
摘要: # 在docker中创建postgresql ```sh # docker 创建 postgres docker pull postgres # 创建容器 # ~/study/db/postgres 是本地的文件映射 # 替换用户名、密码、本地文件映射即可 docker run -itd -e PO
阅读全文
posted @ 2023-07-09 00:13 azoux
阅读(594)
评论(0)
推荐(0)
2023年7月7日
介绍Vue router的history模式以及如何配置history模式
摘要: # 引言 Vue router给我们提供了两种路由模式,分别是hash模式和history模式。其中默认是使用hash模式,即URL中带有一个#符号,但是处于业务或个人喜爱的差别,Vue router也提供了history模式。但是由于Vue是单页SPA应用,所以每个路由并没有对应的html文件。
阅读全文
posted @ 2023-07-07 22:27 azoux
阅读(2724)
评论(0)
推荐(1)
2023年4月5日
Next.js 13 如何使用loading.js
摘要: 要在next.js 13中使用loading.js,我们需要先在对应的文件目录下创建loading.js文件 文件结构如下: app test1 loading.tsx page.tsx 如上面的目录结构所示,我们创建了/test1路径下的页面,以及其对应的loading组件 我们知道,nextjs
阅读全文
posted @ 2023-04-05 17:16 azoux
阅读(1431)
评论(0)
推荐(0)
2022年10月11日
用typescript实现一个event bus
摘要: 一个简单event bus的实现 发布订阅者模式 type emitKey = number | string | symbol; type func = (...args: any) => void; interface BusInterface { emit: (key: emitKey, ..
阅读全文
posted @ 2022-10-11 22:49 azoux
阅读(78)
评论(0)
推荐(0)
2022年10月6日
[踩坑记录] Vue3 customRef 传入对象没有进入set方法
摘要: 问题描述 学习Vue3 Ref 相关 API 的时候,遇到了 customRef 这个 API,它可以让我们自定义 ref 的更新的过程 但是使用 customRef 有一个问题就是,如果你传入的是初始值,那么一切正常,如果你传入的是一个对象,那 set 函数将会不起作用 customRef 简单使
阅读全文
posted @ 2022-10-06 23:00 azoux
阅读(241)
评论(0)
推荐(0)
2022年8月8日
typescript class属性定义的先后问题
摘要: example e.g. 1 e.g. 2 e.g. 3 解释 在 typescript 中 定义一个 class class 的 constructor 里面的语句在转义成 JavaScript 之后会被放在最后执行 在其他区域声明的变量会在其之前执行 但是如果是在 constructor 参数里
阅读全文
posted @ 2022-08-08 22:28 azoux
阅读(76)
评论(0)
推荐(0)
2022年8月7日
javascript class 方法的this指向问题
摘要: 踩坑记录 JavaScript 的 class 里面有两种定义方法的方式 普通函数(fun1) 箭头函数(fun2) class Obj { func1() { // write some code... } func2 = () => { // write some code... } } 其中使
阅读全文
posted @ 2022-08-07 22:56 azoux
阅读(600)
评论(0)
推荐(0)
2022年8月6日
pyenv-win 替换国内镜像源
摘要: 前情提要 今天心血来潮想学一学python 然后因为python版本众多,了解到了pyenv这个python版本管理器 在github下载好pyenv以后,打算先安装一个稳定的版本 pyenv install 3.6.8 然后就悲剧了,因为用的国外的源,一直下载失败。。 接着我上网找了几个解决方法
阅读全文
posted @ 2022-08-06 14:09 azoux
阅读(5030)
评论(0)
推荐(1)
2022年7月17日
golang + postgresql + Kubernetes 后端学习
摘要: 记录 链接 dbdiagram 基于 Golang + PostgreSQL + Kubernetes 后端开发大师班【中英字幕】
阅读全文
posted @ 2022-07-17 14:00 azoux
阅读(56)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页