JavaScript判断对象有没有定义时间:2021-12-04 14:17:17if ( typeof(callbackfun) != "undefined" ) { callbackfun(); }