typescript
peade
前端开发
展开
-
cors-anywhere 类型声明 types declaration
electron 中解决跨域的一个方案,在主进程中使用cros-anywhere, 起一个服务https://github.com/Rob–W/cors-anywhere/pull/267/commits/279eaeecac9bce0476012b6510dc374f30e3663bdeclare module 'cors-anywhere' { import { Server } from 'http'; export function createServer(options?: Par原创 2022-01-07 10:06:02 · 345 阅读 · 0 评论 -
typescript 中 public private protect 区别
在ts的class 内部属性的标记分为public、private、protect三类public 可以被实例化的对象访问到private 只可以被定义的class中访问使用,不可被子类继承访问,不能被实例对象访问protect 可以被子类继承和访问到,不能被实例对象访问...原创 2022-01-05 19:51:15 · 523 阅读 · 0 评论