object Object {} any unknown
2024-09-05 19:05:22
object: 除了primitive(boolean null number string undefined bigint symbol)的类型
Object:
Object和any很像 ,Object有更严格的约束
Object表示装箱后的原始类型对象,即有方法的原始类型(describes funtionality that is common to all JS objects)
和any的区别是:
let a:any
let b:Object
a.nomethod() // okay
b.nomethods() // error
{}:
{}和Object一样,根据查询的资料,{}继承了Object但是没有添加任何东西
unkown:
unknown type is only assignable to the any type and the unknown type itself
https://mariusschulz.com/blog/the-unknown-type-in-typescript
最新文章
- Oracle_SQL函数-分组函数
- Ionic2学习笔记(10):扫描二维码
- 弹窗样式 idialog,purebox,artdialog4.1.2,jquery.alert.v1.2
- jQuery.imgLazyLoad图片懒加载组件
- 在C++中调用DLL中的函数 (2)
- openerp学习笔记 context 的应用
- 548 - Tree (UVa OJ)
- 【原】Oracle查询指定表里的触发器
- 手势识别官方教程(6)识别拖拽手势用GestureDetector.SimpleOnGestureListener和onTouchEvent
- SPOJ 1812 Longest Common Substring II(后缀自动机)
- hdu1114(完全背包)
- Tomcat目录下文件详解
- Linux指令--traceroute,netstat,ss
- ORA-03206,当表空间不够时,如何以添加数据文件的方式扩展表空间
- ubuntu + 远程桌面连接命令 + rdesktop + 连接windows或者ubuntu远程桌面
- 轻量Pythonweb - flask+jinja2
- 外边距塌陷 margin collapsing
- UVa 10163 Storage Keepers (二分 + DP)
- spark-client 一直 accepted,无法提交任务,报错Failed to connect to driver at
- Javascript库,前端框架(UI框架),模板引擎