当前位置:网站首页>Null and undefined
Null and undefined
2022-07-03 03:35:00 【Starry field meow inside】
undefined
1. Statement , Assign to
let o;
console.log(o); // undefined
2. A property of the object does not exist
let obj = {}
console.log(obj.a); // undefined
3. Missing parameters
function fn(a, b) {
console.log(a, b); // 4 undefined
}
fn(4);
4. Method
function abcd() {
console.log("111")
}
console.log(abcd()); // undefined
null
1. Manual memory release
2. As an argument to a function ( This parameter is not an object )
3. Top of prototype chain
let obj = {};
obj1 = null;
边栏推荐
- redis在服务器linux下的启动的相关命令(安装和配置)
- Stepping on pits and solutions when using inputfilter to limit EditText
- FileZilla Client下载安装
- Open Visual Studio 2010 hangs when opening a SQL file sql file
- MongoDB基本操作【增、删、改、查】
- sigaction的使用
- PHP generates PDF tcpdf
- Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11
- [mathematical logic] propositional logic (propositional logic reasoning | formal structure of reasoning | inference law | additional law | simplification law | hypothetical reasoning | refusal | disju
- LVGL使用心得
猜你喜欢
小程序获取用户头像和昵称
Ansible简介【暂未完成(半成品)】
Applet get user avatar and nickname
Captura下载安装及在Captura配置FFmpeg
On the adjacency matrix and adjacency table of graph storage
VS 2019 配置tensorRT生成engine
Why does thread crash not cause JVM crash
C programming learning notes [edited by Mr. Tan Haoqiang] (Chapter III sequence programming) 03 operators and expressions
Summary of electromagnetic spectrum
Vs 2019 installation and configuration opencv
随机推荐
[pyg] understand the messagepassing process, GCN demo details
使用InputFilter限制EditText时踩坑及解决方案
900w+ data, from 17s to 300ms, how to operate
Open Visual Studio 2010 hangs when opening a SQL file sql file
@The difference between Autowired, @qualifier, @resource
UMI route interception (simple and rough)
Convert binary stream to byte array
PHP generates PDF tcpdf
Pat class B "1104 forever" DFS optimization idea
[mathematical logic] propositional logic (propositional logic reasoning | formal structure of reasoning | inference law | additional law | simplification law | hypothetical reasoning | refusal | disju
Réglez la hauteur et lancez le système. Currenttimemillis catton
用Three.js做一個簡單的3D場景
Bigvision code
Limit of one question per day
node 开启服务器
Basic operations of mongodb [add, delete, modify, query]
2020-01-01t00:00:00.000000z date format conversion
释放数据力量的Ceph-尚文网络xUP楠哥
Numpy warning visibledeprecationwarning: creating an ndarray from ragged needed sequences
小程序获取用户头像和昵称