gauseen

Results 19 comments of gauseen

同问,使用 rollup 编译模式,如何打包图片资源呢?

你好,Example 1 中 按需请求的数量怎么是2 ?不是 1 吗?

可以看这里: [示例demo](https://gauseen.github.io/handbook-bui) [bui api](https://gauseen.github.io/handbook-bui-api)

@yanqiangfire 可以看这里: [示例demo](https://gauseen.github.io/handbook-bui) [bui api](https://gauseen.github.io/handbook-bui-api)

`CSRF` 攻击有些不太理解 当用户访问恶意网站 B 时,B 网站又自动访问 A 网站,A 网站的 `cookie` 受同源策略的原因,如何在 B 网站带 A 网站的 `cookie` 呢?

可以简单理解为,支持将类型当做变量传递,方便方法复用 [ts demo](https://www.typescriptlang.org/play?#code/PTAElg5R-eUCldG2bRo9UDD-gh5UA6mgr5UL8BgCeVAZwBcAnASwDsBzUQbx94AoAMwFcyBjAkgezNAIFNCACgDWfAJ4AufMXIUAlKADeAXzp1+QgOR5OAWz6aFIGvEADFoFPzQFgJgcfj1AgoICMAJgDMRsLQuBSo0CYqWrpjGARACqVAQANAZsVALO00WkYWdi4eDQJnAB4AFQA+EXEpDIUVNRT0siZdACM+IhyXdwBuUGMvK1sStMJSShztPQM5RuazVqA) ```ts // 不使用泛型,参数只能传 string 类型 function test(key: string) {} test('some') // 类型检查通过 test(123) // 类型检查报错 // 使用泛型动态决定参数类型 function test2(key: T) {} test2(123); // 类型检查通过 test2('some'); // 类型检查通过...

```js let arr = [0, 0, 1, 1, 1, 2, 2, 3, 3, 4] arr.filter((item, index) => arr.indexOf(item) === index) ```

安装 Chrome 插件就可以 [FasterHosts](https://github.com/gauseen/faster-hosts) > 1. 下载 [FasterHosts](https://github.com/gauseen/faster-hosts/archive/master.zip) 然后解压,找到 `extension` 子目录 > 2. 打开 Chrome,输入: `chrome://extensions/` > 3. 打开「开发这模式」 > 4. 选择「加载已解压的扩展程序」,然后定位到刚才解压的文件夹里面的 `extension` 目录,确定 > 5. 这就安装好了,关闭「开发这模式」

> as the title mentioned, it will be much more convenient if we can manage ssh key for different git accounts at the same time What scenarios will use multiple...