HaiqingLiu / My-Blog

个人技术能力提升
0 stars 1 forks source link

学习记录 #3

Open GenweiWu opened 6 years ago

GenweiWu commented 6 years ago

1. chrome 开发者工具

GenweiWu commented 6 years ago

2. linux

GenweiWu commented 6 years ago

https://www.cnblogs.com/xxcanghai/p/4998076.html

GenweiWu commented 5 years ago

箭头 参考资料

GenweiWu commented 5 years ago

表头拖拽Demo

image

https://jsfiddle.net/GenweiWu/n75y2krz/

GenweiWu commented 5 years ago

flex布局

http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html https://juejin.im/post/58e3a5a0a0bb9f0069fc16bb https://zhuanlan.zhihu.com/p/25303493 https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox

GenweiWu commented 5 years ago

https://github.com/angular/angular-cli/issues/3759

试试这个

sudo apt remove ng-common
sudo npm uninstall -g @angular/cli
sudo rm /usr/local/bin/ng
sudo npm install -g @angular/cli
GenweiWu commented 4 years ago

多个文件同时下载

https://stackoverflow.com/a/30682695


var links = [
'https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.exe',
'https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.dmg',
'https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar'
];

function downloadAll(urls) { var link = document.createElement('a');

url要设置成文件名

link.setAttribute('download', null); link.style.display = 'none';

document.body.appendChild(link);

for (var i = 0; i < urls.length; i++) { link.setAttribute('href', urls[i]); link.click(); }

document.body.removeChild(link); }

```html
<button onclick="downloadAll(window.links)">Test me!</button>