上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 494 下一页
摘要: function timeout(time) { return new Promise((resolve) => { setTimeout(resolve, time); }); } class ParalleTask { constructor(paralleCount = 2) { this.t 阅读全文
posted @ 2024-09-03 21:12 Zhentiw 阅读(20) 评论(0) 推荐(0)
摘要: @use 'sass:math'; .menu-item { opacity: 0; transition: 0.5s; } $r: 120px; $n: 6; $step: 360deg / $n; for $i from 1 through $n { .board:hover .menu-ite 阅读全文
posted @ 2024-09-03 20:45 Zhentiw 阅读(38) 评论(0) 推荐(0)
摘要: export const randomColor = () => { return "#" + Math.random().toString(16).substring(2, 8).padEnd(6, '0') } export const randomString = (len: number) 阅读全文
posted @ 2024-09-03 20:35 Zhentiw 阅读(22) 评论(0) 推荐(0)
摘要: The solution is to modify the tsconfig.json file to enable declarationMap under the compilerOptions. // inside tsconfig.json { "compilerOptions": { "d 阅读全文
posted @ 2024-09-02 20:41 Zhentiw 阅读(26) 评论(0) 推荐(0)
摘要: <style> dt { position: sticky; top: 0; } </style> <body> <dl> <dt>A</dt> <dd>Adrew W.K</dd> <dd>Adapter</dd> <dt>B</dt> <dd>Border</dd> <dd>Beef</dd> 阅读全文
posted @ 2024-08-29 15:17 Zhentiw 阅读(12) 评论(0) 推荐(0)
摘要: In this post, we’ll explore an intriguing use of JavaScript’s Proxy and Symbol.toPrimitive to perform cumulative operations, mimicking a numeric conte 阅读全文
posted @ 2024-08-28 02:16 Zhentiw 阅读(42) 评论(0) 推荐(0)
摘要: $breakpoints: ( 'phone': (320px, 480px), 'pad': (481px, 768px), 'notebook': (769px, 1024px), 'desktop': (1025px, 1200px), 'tv': 1201px, ) @mixin respo 阅读全文
posted @ 2024-08-26 23:49 Zhentiw 阅读(19) 评论(0) 推荐(0)
摘要: // Object.prototype[Symbol.iterator] = function() { // return Object.values(this)[Symbol.iterator](); // } Object.prototype[Symbol.iterator] = functio 阅读全文
posted @ 2024-08-26 00:20 Zhentiw 阅读(15) 评论(0) 推荐(0)
摘要: Normal browser has restiction that doesn't allow you automaticlly play the video, unless your site has high Media Enagement index (MEI). There are 2 w 阅读全文
posted @ 2024-08-25 20:02 Zhentiw 阅读(34) 评论(0) 推荐(0)
摘要: One way data binding, the parent component pasing data through v-modelto child component, if child modify the data, v-modelwill take care emit the cha 阅读全文
posted @ 2024-08-25 19:51 Zhentiw 阅读(122) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 494 下一页