判断类型: var u = navigator.userAgent; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios 执行回调函数: if (isAndroid) { blin.CallAndroid(xxxx, yyyyy); } if (isiOS) { va
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(<#delayInSeconds#> * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ <#code to be executed after a specified delay#> }); <#delayInSeconds#> 延迟时间 <#code to be executed after a spe
能够通过NSObject的一些方法获取运行时信息或动态运行一些消息: /*Returns a Boolean value that indicates whether the receiving class is a subclass of, or identical to, a given class.*/ + (BOOL)isSubclassOfClass:(Class)aClass; /*Returns a Boolean value that indicates whether inst