会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lucky
博客园
首页
新随笔
联系
管理
订阅
1
2
3
4
5
···
22
下一页
2024年7月4日
css3 transform scale 和 translate 不同步 translate 放前面
摘要: const imageStyle = computed(() => { return { transform: `translate(${translate.value.x}px, ${translate.value.y}px) scale(${imgScale.value}) rotate(${r
阅读全文
posted @ 2024-07-04 16:37 luckylou
阅读(189)
评论(0)
推荐(0)
2024年6月17日
给nodejs分配内存
摘要: 您需要增加节点允许的内存量。 您可以通过以下方式在全局范围内执 打开一个cmd窗口跑 setx NODE_OPTIONS --max_old_space_size=6144关闭所有cmd /代码编辑器重新打开cmd并再次运行节点命令(npm等)
阅读全文
posted @ 2024-06-17 15:56 luckylou
阅读(164)
评论(0)
推荐(0)
2024年6月14日
vue 图片旋转
摘要: <template> <div> <img :style="imageStyle" src="path/to/your/image.jpg" alt="Rotated Image"> <button @click="rotateImage">Rotate Image</button> </div>
阅读全文
posted @ 2024-06-14 17:29 luckylou
阅读(81)
评论(0)
推荐(0)
2024年6月6日
CSS Transition通过改变Height实现展开收起元素
摘要: 需要设置height的具体值,auto不生效 解决方法 大概预估一下max-height的值 使用max-height代替height
阅读全文
posted @ 2024-06-06 10:51 luckylou
阅读(8)
评论(0)
推荐(0)
2024年5月30日
JS中?? 与 || 的区别
摘要: 1)相同点: ?? 和 || 的用法相同,都是前后是值,中间用符号连接,根据前面的值来判断最终是返回前面的值还是后面的值。 One ?? Two One || Two 2)不同点: 判断的方法不同: 使用 ?? 时,只有One为 null 或者 undefined 时才会返回 two; 使用 ||
阅读全文
posted @ 2024-05-30 11:42 luckylou
阅读(214)
评论(0)
推荐(1)
2024年4月29日
error:03000086:digital envelope routines::initialization error
摘要: 执行以下命令 NODE_OPTIONS="--openssl-legacy-provider" 然后 npm run serve
阅读全文
posted @ 2024-04-29 18:13 luckylou
阅读(39)
评论(0)
推荐(0)
2024年3月21日
antdesign vue3 a-input-search 清空
摘要: <template> <a-input-search v-model:value="searchText" allow-clear @search="onSearch" @clear="clearSearch" placeholder="请输入" /> <a-button @click="clear
阅读全文
posted @ 2024-03-21 15:07 luckylou
阅读(1036)
评论(0)
推荐(0)
2024年3月15日
css 重置focus样式
摘要: &:focus { border-color: var(--ant-primary-color); background: var(--ant-primary-color); } &:focus:hover { border-color: var(--ant-primary-color-hover)
阅读全文
posted @ 2024-03-15 15:41 luckylou
阅读(63)
评论(0)
推荐(0)
2024年2月26日
sass 中使用/deep/报错(已解决)
摘要: <style scoped lang="sass"> .main_wrapper padding: 0 53px position: relative top: -20px /deep/ .el-tabs__item height: 30px line-height: 30px color: #ff
阅读全文
posted @ 2024-02-26 14:53 luckylou
阅读(1488)
评论(0)
推荐(0)
2024年1月24日
Object.entries()
摘要: Object.entries() 静态方法返回一个数组,包含给定对象自有的可枚举字符串键属性的键值对。 JavaScript Demo: Object.entries() const object1 = { a: 'somestring', b: 42, }; for (const [key, va
阅读全文
posted @ 2024-01-24 15:10 luckylou
阅读(32)
评论(0)
推荐(0)
1
2
3
4
5
···
22
下一页
公告