Daily-Interview-Question
Daily-Interview-Question copied to clipboard
我是依扬(木易杨),公众号「高级前端进阶」作者,每天搞定一道前端大厂面试题,祝大家天天进步,一年后会看到不一样的自己。
例如: ```js http://www.qq.com // 通过 http://www.qq.com.cn // 不通过 http://www.qq.com/a/b // 通过 http://www.qq.com?a=1 // 通过 http://www.123qq.com?a=1 // 不通过 ```
```html ``` 1. ```css div.parent { display: flex; justify-content: center; align-items: center; } ``` 2. ```css div.parent { position: relative; } div.child { position: absolute; top: 50%; left: 50%; transform:...
```javascript let url = 'https://www.baidu.com'; function searchUrl(url) { try { if (new URL(url) && (new URL(url).protocol === "http:" || new URL(url).protocol === "https:") && url.match(new RegExp(new URL(url).protocol + "//")).index ===...
第 81 题:打印出 1 - 10000 之间的所有对称数 例如:121、1331 等 ```javascript [...Array(10000).keys()].filter((x) => { return x.toString().length > 1 && x === Number(x.toString().split('').reverse().join('')) }) ``` 
```js var entry = { a: { b: { c: { dd: 'abcdd' } }, d: { xx: 'adxx' }, e: 'ae' } } // 要求转换成如下对象 var output = {...