var obj = {};
1,toString( recommend )
Object.prototype.toString.call(obj) === '[object Object]'
2,constructor
obj.constructor === Object
3,instanceof Note that arrays are also objects , So use arr instanceof Object Also for true.
obj instanceof Object
4,typeof
typeof obj === Object // according to typeof The judgment object is not very accurate expression Return value typeof undefined 'undefined'
typeof null 'object' typeof true 'boolean' typeof 123 'number' typeof "abc"
'string' typeof function() {} 'function' typeof {} 'object' typeof [] 'object'
5,$.isPlainObject()
Determine whether the specified parameter is a pure object ( so-called " Pure object ", Is that the object is passed "{}" or "new Object" Created .)
$.isPlainObject(obj)

Technology
©2019-2020 Toolsou All rights reserved,
QCustomPlot series (5)- Real time dynamic curve python To solve the problem of dictionary writing list in GDOI2019 travels Java Basics ( Bubble sort )Unity Scene loading asynchronously ( Implementation of loading interface )" Cephalosporin wine Say go and go "? DANGER ! Don't drink alcohol when taking these drugs 2021 year 1 Monthly programmer salary statistics , average 14915 element Huawei certification HCIA-AI artificial intelligence java Simple lottery algorithm , luck draw DemoNOI2019 travels