js null undefined null difference explanation_javascript skills
- WBOYOriginal
- 2016-05-16 18:25:09750browse
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
Statement: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