1:判断是IOS或安卓
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#endif
1:判断是IOS或安卓
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#endif
转载于:https://www.cnblogs.com/wuhui-s/p/5415799.html