web-basics
web-basics copied to clipboard
大厂前端需要掌握的JS基础能力,大厂场景题、大厂面试真题欢迎提issue和PR来丰富场景题。
``` Function.prototype.myBind = function(context){ if (context === null || context === undefined) { // this参数如果是null/undefined,就指向window,node环境为global try { context = window; } catch(e){ context = global; } } else { context...
根据内容统一
https://github.com/OBKoro1/web-basics/blob/main/src/scene/numberToCn/numberToCn.js 提供以下测试用例,2个答案均未通过 ```js console.log(trans(1001000)); // 一百万零一千 console.log(trans(11000000)); // 一千一百万 console.log(trans(100000001)); // 一亿零一 ``` 另: 3个链接失效,没有指向正确的文件