笔记-undefined和null 元荣 2022-03-14 96 阅读1分钟 undefined 在发送请求的时候设置参数的值为undefined时,那么该参数不会被发送。 null 可以把不需要的对象赋值null,这样就断开了该对象的引用,这样可以让其被回收。