JavaScript 基础 2 ways of check type

user = function () {
}

function Button3_onclick() {
    
var lily = new user();
    alert(
typeof lily == "object");
    alert(lily.constructor 
== user);
}


原文地址:https://www.cnblogs.com/xh831213/p/1962338.html