shaobeichen

Results 38 issues of shaobeichen

与浏览器不同,mac 的终端默认并没有开启代理模式,也就是说即使我们电脑安装了 SS/V2ray 等代理客户端,在终端中也是无法科学上网的。下面通过样例演示如何对终端配置网络代理。 1,确定代理客户端的端口 首先我们打开我们使用的代理客户端设置页面,查看其开放的 HTTP 端口,比如这里使用的端口是 1088 ![image](https://user-images.githubusercontent.com/18715564/208610498-a523f730-2742-45a2-a3a4-1c97062c3f07.png) 2,配置代理 (1)bash 是 macOS Mojave 及更低版本中的默认 Shell 终端。要对其进行配置,首先执行如下命令修改用户全局配置文件: ``` vim ~/.bash_profile ``` 然后在其里面添加如下内容: ``` alias proxy='export http_proxy=127.0.0.1:1088;export https_proxy=$http_proxy' alias proxyOff='unset...

```js const originComponent = Component Component = function (options) { const optionsAttached = options.attached if (optionsAttached) { options.attached = function (...args) { const setDataRaw = this.setData this.setData = function (...args)...

```ts // your answers type MyReturnType any> = T extends (...args: any[]) => infer R ? R : never ```

answer
2
en

```ts // 你的答案 type Pop = T extends [] ? [] : T extends [...infer F, infer L] ? F : never ```

answer
zh-CN
16

```ts // 你的答案 type Last = T extends [...infer P, infer R] ? R : never ```

answer
zh-CN
15

hope have autosuggest props feature when press space on children component tag. e.g. interface will appear "msg" and "labels" when press space

I have created a new plugin based on free evaluation for Visual Studio Code and made some modifications. May I ask if it is allowed?