The invention discloses a controllable and universal directional surface printing method. The method comprises the steps as follows: template glucoprotein is anchored on the surface of a substitution boric acid functional substrate material via boron affinity interaction, the polymer formed by auto-polymerization in water phase of a compound capable of automatically polymerizing forms a printing layer, and a template is eluted under the acid condition to form a printing hollow cavity, as a result, the molecular printing polymer is obtained. The molecular printing polymer prepared via the method not only has the advantages of good specificity, high combination capacity, strong anti-interference capability, quick combination and analysis speed and the like, but also can exclusively identify the template glucoprotein with or without the boron affinity interaction, is adjustable in force of combination with the template when keeping the specificity, and is wide in application range. The method has the advantages of convenience, controllability, universality, high printing efficiency and the like. The molecular printing polymer can exclusively identify, gather, separate and detect the glucoprotein with low enrichment in a complex practical sample.