函数类型
指给函数添加类型注解,本质上就是给函数的参数和返回值添加类型约束
function add(a: number,b: number) :number {return a b
}
let res: number
res add(2 3)
// 函数参数注解类型之后,不但限制了参数的类型还限制了参数为必填 优点&…
报错信息
Failed to restart udev.service: Unit systemd-udevd.service is not loaded properly: Exec format error. See system logs and ‘systemctl status udev.service’ for details. invoke-rc.d: initscript udev, action “restart” failed. ● systemd-udevd.ser…