js judge undefined type
if (reValue== undefined){alert("undefined");}I found that I couldn't judge it, so I finally checked the information and used the typeof method:
if (typeof(reValue) == "undefined") { alert("undefined"); }typeof returns a string, and there are six possibilities: "number", "string", "boolean", "object", "function", "undefined"