A compound represented by formula (I), or a pharmaceutically acceptable salt thereof, or an enantiomer, diastereomer, tautomer, solvate, or polymorph thereof, wherein: R 1 is selected from hydrogen, halogen, C 1 -C 3 alkyl, cyano; R 2 is selected from hydrogen, C 1 -C 10 alkyl, 3-8 membered cycloalkyl or heterocycloalkyl, 5-8 membered aryl or heteroaryl; each of R 3 , R 4 and R 5 is independently selected from hydrogen, halogen, cyano, alkyl, sulfuryl, sulfinyl, acyl, sulfonyl, nitro; M 1 is selected from CR 6 or N; R 6 is selected from hydrogen, halogen, C 1 -C 3 alkyl; Ar is selected from 5-6 membered aryl or heteroaryl; L is selected from a chemical bond, C 1 -C 10 alkyl, alkenyl, alkynyl, alkoxyl, alkylthio, alkylamino, acyl, sulfonyl, 4-8 membered cycloalkyl or heterocycloalkyl, 5-10 membered aryl or heteroaryl; A is selected from 4-8 membered cycloalkyl or heterocycloalkyl, 5-10 membered aryl or heteroaryl; one or more hydrogen atoms in each of the above groups are optionally substituted by the substituent independently selected from the group consisting of deuterium, halogen, hydroxyl, amino, cyano, sulfuryl or sulfinyl, C 1 -C 8 alkyl, C 3 -C 8 cycloalkyl, C 1 -C 8 alkoxyl, C 1 -C 8 alkylamino, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 2 -C 6 acyl or sulfonyl, 5-8 membered aryl or heteroaryl, 4-8 membered saturated cycloalkyl or heterocycloalkyl; wherein, the heteroaryl comprises 1-3 heteroatoms independently selected from the group consisting of N, O, P and S; the heterocycloalkyl comprises 1-3 heteroatoms independently selected from the group consisting of N, O, P and S; or, R 2 is N(CH 3 ) 2 C(=O)CH 2 - or N(R 7 )(R 8 )-(CH 2 )z-; each of R 7 and R 8 is independently hydrogen or C 1 -C 6 alkyl, z is 1, 2, 3 or 4; or, each of R 3 , R 4 and R 5 is independently N(R 9 )(R 10 )-(CH 2 )p-; wherein R 9 and R 10 are both C 1 -C 6 alkyl, p is 1 or 2. R 1 is selected from hydrogen, halogen, C 1 -C 3 alkyl, cyano; R 2 is selected from hydrogen, C 1 -C 10 alkyl, 3-8 membered cycloalkyl or heterocycloalkyl, 5-8 membered aryl or heteroaryl; each of R 3 , R 4 and R 5 is independently selected from hydrogen, halogen, cyano, alkyl, sulfuryl, sulfinyl, acyl, sulfonyl, nitro; M 1 is selected from CR 6 or N; R 6 is selected from hydrogen, halogen, C 1 -C 3 alkyl; Ar is selected from 5-6 membered aryl or heteroaryl; L is selected from a chemical bond, C 1 -C 10 alkyl, alkenyl, alkynyl, alkoxyl, alkylthio, alkylamino, acyl, sulfonyl, 4-8 membered cycloalkyl or heterocycloalkyl, 5-10 membered aryl or heteroaryl; A is selected from 4-8 membered cycloalkyl or heterocycloalkyl, 5-10 membered aryl or heteroaryl; one or more hydrogen atoms in each of the above groups are optionally substituted by the substituent independently selected from the group consisting of deuterium, halogen, hydroxyl, amino, cyano, sulfuryl or sulfinyl, C 1 -C 8 alkyl, C 3 -C 8 cycloalkyl, C 1 -C 8 alkoxyl, C 1 -C 8 alkylamino, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 2 -C 6 acyl or sulfonyl, 5-8 membered aryl or heteroaryl, 4-8 membered saturated cycloalkyl or heterocycloalkyl; wherein, the heteroaryl comprises 1-3 heteroatoms independently selected from the group consisting of N, O, P and S; the heterocycloalkyl comprises 1-3 heteroatoms independently selected from the group consisting of N, O, P and S; or, R 2 is N(CH 3 ) 2 C(=O)CH 2 - or N(R 7 )(R 8 )-(CH 2 )z-; each of R 7 and R 8 is independently hydrogen or C 1 -C 6 alkyl, z is 1, 2, 3 or 4; or, each of R 3 , R 4 and R 5 is independently N(R 9 )(R 10 )-(CH 2 )p-; wherein R 9 and R 10 are both C 1 -C 6 alkyl, p is 1 or 2. <EOS>