Jquery class2type

// Populate the class2type map
jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) {
    class2type[ "[object " + name + "]" ] = name.toLowerCase();
});

 

posted @ 2015-01-24 11:39  最喜欢  阅读(246)  评论(0编辑  收藏  举报