Notes icon indicating copy to clipboard operation
Notes copied to clipboard

:rocket: 笔记

Results 100 Notes issues
Sort by recently updated
recently updated
newest added

### 随机生成十六进制颜色 ```javascript //随机生成十六进制颜色 const randomHexColorCode = () => { let n = (Math.random() * 0xfffff * 1000000).toString(16); return "#" + n.slice(0, 6); }; //使用 randomHexColorCode(); // '#e34155' ``` ###...

```css :-webkit-full-screen { background-color: @content-bg !important; } :-moz-full-screen { background-color: @content-bg !important; } :-ms-fullscreen { background-color: @content-bg !important; } :fullscreen { background-color: @content-bg !important; } ```

```javascript /** * 检索关键词节点及其所有父节点 * @param {String} keywords * @param {Array} data * @returns 关键词节点及其所有父节点 */ function findRelativeNode(keywords, data) { // 根据id做映射 const map = {}; for (const item of...

![image](https://user-images.githubusercontent.com/8264787/130734744-68bd7151-53b9-4759-87db-4370c3337036.png) 看到了吗, 滚动的时候, 下拉框选项不跟随select框. ## 解决办法1 ![image](https://user-images.githubusercontent.com/8264787/130733932-7b9fe7e8-29d8-44d9-9f74-57268ab924e4.png) ant的下拉菜单是相对于body绝对定位的div, 所以使用selcet一定要保证其父元素都不能有滚动条, 只能使用全局滚动. ## 解决办法2 通过api自己指定其父元素. ![image](https://user-images.githubusercontent.com/8264787/130734306-11885e9f-d038-45e8-8e99-b9515be0080c.png)

![image](https://user-images.githubusercontent.com/8264787/33591147-adca798c-d9be-11e7-9b73-fa994fa1dbb0.png) 给其中任意一个元素设置display:inline-block;

![image](https://user-images.githubusercontent.com/8264787/125913917-fa272f5b-9b6b-4a99-9c87-35fdd1083810.png)

![image](https://user-images.githubusercontent.com/8264787/125911165-d63de4c5-b3da-49b7-9876-d48dad24873b.png)

```javascript const routes = [ { path: '/:catchAll(.*)*',component: () => import('./views/404.vue') }, ] ``` catchAll叫什么无所谓,叫x叫y都行

```typescript // typescript export = function(){} ``` 生成 ```javascript // javascript module.export = function(){} ``` 这样就可以requrie('xxx'), 不用requrie('xxx').default了

右键属性把以管理员身份运行此程序的√去掉即可 ![image](https://user-images.githubusercontent.com/8264787/124776200-d43d0780-df71-11eb-8d75-0b6489a8fdd4.png)