04 2024 档案

摘要:class SuperTask { constructor(parallelCount = 2) { this.parallelCount = parallelCount this.tasks = [] this.ruuingCount = 1 } add(task1) { return new P 阅读全文
posted @ 2024-04-29 16:07 howhy 阅读(44) 评论(0) 推荐(0) 编辑
摘要:function arrany(name) { let tasks = [] tasks.push(() => { console.log(name) }) function wait(duration) { tasks.push(() => new Promise(resolve => { set 阅读全文
posted @ 2024-04-29 15:00 howhy 阅读(10) 评论(0) 推荐(0) 编辑
摘要:function _runtask(task,callback){ const startTime=Date.now() requestAnimationFrame(()=>{ if(Date.now()-startTime<16.6){ task() callback() }else{ _runt 阅读全文
posted @ 2024-04-28 18:43 howhy 阅读(4) 评论(0) 推荐(0) 编辑
摘要:class User { constructor(name, age) { this.name = name this.age = age } static print(age) { console.log(this.name + ' ' + age) } sayHello() { console. 阅读全文
posted @ 2024-04-28 17:35 howhy 阅读(1) 评论(0) 推荐(0) 编辑
摘要:function deepClone(obj) { if (typeof obj !== 'object' || obj null) { return obj } const result = Array.isArray(obj) ? [] : {} Object.setPrototypeOf(re 阅读全文
posted @ 2024-04-28 16:09 howhy 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-04-28 15:28 howhy 阅读(4) 评论(0) 推荐(0) 编辑
摘要:function isPrimitive(obj) { return obj null || !['object', 'function'].includes(typeof obj) } function objEqual(obj1, obj2) { //console.log(isPrimitiv 阅读全文
posted @ 2024-04-28 14:47 howhy 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Function.prototype.mycall = function (ctx, ...args) { ctx = ctx undefined || ctx null ? globalThis : Object(ctx) const fn = this; const key = Symbol(' 阅读全文
posted @ 2024-04-26 15:30 howhy 阅读(8) 评论(0) 推荐(0) 编辑
摘要:function forcall(fun) { console.log(fun) return function f1(...args) { console.log(11, args) if (args.length >= fun.length) { return fun(...args) } el 阅读全文
posted @ 2024-04-26 11:05 howhy 阅读(3) 评论(0) 推荐(0) 编辑
摘要:const { default: axios } = require("axios") const qs = require('qs') function regsoleKey(config) { const { method, url, params, data } = config; retur 阅读全文
posted @ 2024-04-15 14:55 howhy 阅读(10) 评论(0) 推荐(0) 编辑
摘要:1、!important; 2、Id选择器 3、类选择器 属性选择器 伪类选择器 4、元素选择器 伪元素选择器(::before ::after) (a,b,c)算法 a id选择器个数这 b 类选择器 属性选择器 伪类选择器和 c 元素选择器 伪元素选择器和 CSS浏览器渲染: 1、样式声明:所有 阅读全文
posted @ 2024-04-15 09:36 howhy 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2024-04-13 10:51 howhy 阅读(10) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2024-04-13 10:07 howhy 阅读(3) 评论(0) 推荐(0) 编辑
摘要:<input type="text" inputmode="email" accesskey="b" tabindex="1"> ##inputmode是键盘 accesskey是快捷键fouse Alt+accesskey 阅读全文
posted @ 2024-04-12 17:48 howhy 阅读(7) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示