Preparation of doped materials. Put the corresponding amount of host, guest and ion salts together, and heat the mixture to 60 ℃ in air atmosphere. After the guests are completely dissolved in the molten hosts, the mixed systems are cooled to room temperature, and the mixed systems are crystallized to obtain the doped materials.