摘要: JS 部分为 Vue3 版本写法 <!--描述--> <div class="brand-info-desc"> <input id="btn-input" class="btn-input" v-model="checkbox" type="checkbox"> <div class="text" 阅读全文
posted @ 2022-11-23 15:20 生命在于折腾Up 阅读(2129) 评论(0) 推荐(0) 编辑
摘要: <div id="parent"> <br /> <br /> <br /> <br /> <div class="myElement">Hello!</div> </div> #parent { height: 2000px; } .myElement { position: sticky; to 阅读全文
posted @ 2022-11-04 19:44 生命在于折腾Up 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 项目中使用了目前最新版本的 husky@8.0.1 安装 husky npm i -D husky 执行(需要在npm版本大于 7): npm set-script prepare "husky install" 执行 npm run prepare 测试项目目录下会多一个目录 .husky 执行 阅读全文
posted @ 2022-10-18 16:14 生命在于折腾Up 阅读(231) 评论(0) 推荐(0) 编辑
摘要: git reset --soft HEAD^ 阅读全文
posted @ 2022-10-18 15:18 生命在于折腾Up 阅读(44) 评论(0) 推荐(0) 编辑
摘要: template: <i18n path="totalBuy" tag="span" :for="item.purchaseMboxAmount"> <span class="item-text">{{ item.purchaseMboxAmount }}</span> </i18n> 翻译: { 阅读全文
posted @ 2022-10-11 17:07 生命在于折腾Up 阅读(187) 评论(0) 推荐(0) 编辑
摘要: if ((i & 1) 0)代替if (i % 2 0)来判断 i 是不是偶数。 原理: 按位与操作符(&) 按位与操作符(&)会对参加运算的两个数据按二进制位进行与运算,即两位同时为 1 时,结果才为1,否则结果为0。运算规则如下: 0 & 0 = 0 0 & 1 = 0 1 & 0 = 0 1 阅读全文
posted @ 2022-10-10 16:30 生命在于折腾Up 阅读(774) 评论(0) 推荐(0) 编辑
摘要: <h4 class="cont-info-title white ellipsis"> {{ t('myBlindBox.congratulation', 1) }} </h4> <p class="cont-info-content white"> <!--集齐全部盲盒文案--> <templat 阅读全文
posted @ 2022-09-22 14:17 生命在于折腾Up 阅读(58) 评论(0) 推荐(0) 编辑
摘要: @at-root [dir='rtl'] & .hide-types-icon { transform: rotateY(180deg); } 阅读全文
posted @ 2022-09-21 17:59 生命在于折腾Up 阅读(44) 评论(0) 推荐(0) 编辑
摘要: { path: '/:pathMatch(.*)', redirect: '/home', }, 阅读全文
posted @ 2022-09-02 10:11 生命在于折腾Up 阅读(370) 评论(0) 推荐(0) 编辑
摘要: <div class="box-item-num white"> <span class="num">x <b>12</b></span> </div> &-num { width: 46px; height: 26px; font-size: 12px; position: absolute; l 阅读全文
posted @ 2022-09-01 10:56 生命在于折腾Up 阅读(2087) 评论(0) 推荐(0) 编辑