local targetPlatform = CCApplication:sharedApplication():getTargetPlatform()--获取当前设备类型
if kTargetIphone == targetPlatform or kTargetIpad == targetPlatform then
print("iPhone OS")
else
print("Android OS")
end
CCApplication:sharedApplication():getCurrentLanguage()--获取当前设备的语言类型