♚Painting
♚Painting
全部文章
题解
归档
标签
去牛客网
登录
/
注册
♚Painting的博客
全部文章
/ 题解
(共6篇)
题解 | #柯里化#
function curryIt(fn) { return function foo1(a){ return function foo2(b){ return function foo3(c){ return fn.apply(this...
HTML/CSS/JavaScript
2022-04-13
0
254
题解 | #数组去重#
<script type="text/javascript"> const _deleteRepeat = array => { // 补全代码 let map = new Map(); let res = []; for(let...
HTML/CSS/JavaScript
数组
2022-04-12
0
343
题解 | #事件委托#
// 补全代码 let ul = document.querySelector('ul') ul.onclick = function(e){ // console.log(e.target) e.target.innerHTML += '.' }
HTML/CSS/JavaScript
2022-04-12
5
795
题解 | #寄生组合式继承#
function inhert(subType, superType) { subType.prototype = Object.create(superType.prototype); Object.defineProperty(subType.prototype, "constructo...
HTML/CSS/JavaScript
2022-04-12
1
329
题解 | #表单类型#
const p = document.querySelector('p') p.innerHTML = p.innerText.replace("牛客网", '<Strong>牛客网</Strong>')
HTML/CSS/JavaScript
2022-01-11
1
504
题解 | #表单类型#
<form> <!-- 补全代码 --> <input type="password" value="nowcoder"/> input type="checkbox" checked> </form>
HTML/CSS/JavaScript
2022-01-10
6
1545