Provided in the present invention are novel benzodioxole derivatives and preparation methods thereof. These compounds represented by formula (I) or pharmaceutically acceptable salts thereof have acetylcholinesterase inhibitory activity, so can be used in the treatment or prevention of Alzheimer's disease. The definitions of R 1 , R 2 and A of formula (I) can be seen in the description.