1. An alerting method, comprising: obtaining real-time environmental data of a mobile terminal using a sensor; detecting whether the real-time environmental data contains an object that affects user behavior; and generating alert information according to the real-time environmental data when the real-time environmental data contains the object that affects the user behavior.