06 2023 档案

摘要:为什么需要异步编程 阅读全文
posted @ 2023-06-14 16:43 useeee 阅读(28) 评论(0) 推荐(0)
摘要:- 箭头函数与普通函数的区别 1、语法更加简洁清晰 2、箭头函数不会创建自己的this 箭头函数没有自己的this,它会捕捉自己在定义时所处外层执行环境的this,并继承这个this值。所以箭头函数中this的指向在它被定义的时候就已经确定了,之后不再改变。 下面例子中,fun1中setTimeou 阅读全文
posted @ 2023-06-12 20:35 useeee 阅读(96) 评论(0) 推荐(0)
摘要:1.转化为string类型 2.装换为Number类型 3.转换为布尔值 阅读全文
posted @ 2023-06-11 21:17 useeee 阅读(17) 评论(0) 推荐(0)
摘要:typeof: 点击查看代码 ``` typeof 1 // 'number' typeof '1' // 'string' typeof undefined // 'undefined' typeof true // 'boolean' typeof Symbol() // 'symbol' ty 阅读全文
posted @ 2023-06-11 21:08 useeee 阅读(19) 评论(0) 推荐(0)
摘要:点击查看代码 ``` var removeElements = function(head, val) { var dummyNode = new ListNode(-1); // 设置一个虚拟头节点 dummyNode.next = head; var prev = dummyNode; // p 阅读全文
posted @ 2023-06-08 20:46 useeee 阅读(13) 评论(0) 推荐(0)