code: function isIOSMessageValid(message){
  
      if(!(message instanceof IOSMessage)){
          throw new Error('message is invalid');
      }
  
      if(parseInt(message.expireTime) !== message.expireTime || message.expireTime < 0 || message.expireTime > 60*60*24*3){
          throw new Error('expireTime is invalid');
      }
  
      if(parseInt(message.sendTime) !== message.sendTime || message.sendTime < 0){
          throw new Error('sendTime is invalid');
      }
  
      if(!isIOSCustomContentValid(message.customContent)){
          throw new Error('customContent is invalid');
      }
  
      if(!isAccessTimeValid(message.acceptTime)){
          throw new Error('acceptTime is invalid');
      }
  
      if(typeof message.alert !== 'string' && typeof message.alert !== 'object'){
          throw new Error('alert is invalid');
      }
  
      if((message.badge !== null) && (parseInt(message.badge) !== message.badge)){
          throw new Error('badge is invalid');
      }
  
      if((message.sound !== null ) && (typeof message.sound !== 'string')){
          throw new Error('sound is invalid');
      }
  
      if(message.loopTimes !== null && parseInt(message.loopTimes) != message.loopTimes){
          throw new Error('loopTimes is invalid');
      }
  
      if(message.loopInterval !== null && parseInt(message.loopInterval) != message.loopInterval){
          throw new Error('loopInterval is invalid');
      }
  
      return true;
  }
docs: 检查IOSMessage对象是否合法
  @param  {[type]}  message 待检查的message对象
  @return {Boolean}         检查结果