The invention provides a 1-(7-ethoxycoumarin)-4-(2-methyl-8-methoxyquinoline)-1, 2, 3-triazole ratiometric fluorescence or ratiometric ultraviolet absorption probe agent and preparation and application thereof, and belongs to the technical fields of organic synthesis and analytic chemistry. The preparation method is characterized in that an intermediate, namely, 2-methyl-8-(propyn-2-yl alkoxy) quinoline, reacts with 7-(2-azidoethoxy)-coumarin to obtain a compound a of which triazolyl is connected with two fluorophores, namely, coumarin and quinoline, wherein the compound is 1-(7-ethoxycoumarin)-4-(2-methyl-8-methoxyquinoline)-1, 2, 3-triazole. The preparation method has the advantages that the reaction raw materials are easy to obtain, the synthesis method is simple, and the compound can be obtained by three-step reaction; the compound a generates ratiometric fluorescence at 480nm and 390nm in alcohol/aqueous solution, and trace Al<3+> can be measured accordingly; ratiometric ultraviolet absorption is produced at 253nm and 243nm, and trace Al<3+> can be measured accordingly. The probe agent is the probe agent being high in sensitivity, high in accuracy and high in selectivity and used for detecting Al<3+> ions through ratiometric fluorescence and ratiometric ultraviolet absorption. The structure formula of the compound a is as shown in the specification.