Home > Web Front-end > JS Tutorial > js null undefined null difference explanation_javascript skills

js null undefined null difference explanation_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 18:25:09
Original
808 people have browsed it
null, the object does not exist
var ii= document.getElementById("id");
alert(ii);
The id object does not exist on the current page

undefined
var i;
alert(i);
The declared variable is not initialized
alert(document.oiji); >

Empty

var iab = document.getElementById("name").value; alert(iab);
id= The value of name is empty
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template