The smart membrane with under-liquid dual superlyophobicity, which can achieve on-demand separation of oil/water emulsions only by simple liquid pre-wetting, is of essential value for the treatment of complicated real oil/water systems. Here, we first fabricated a stable suspension of imine-linked covalent organic framework nanospheres (TPB-DMTP-COF), and subsequently fabricated COF functionalized smart membranes with under-liquid dual superlyophobicity by immersing polyacrylonitrile-based (PAN-based) membranes into TPB-DMTP-COF nanosphere suspension. Accordingly, effective switchable separation of both oil-in-water and water-in-oil emulsions by TPB-DMTP-COF/PAN membranes can be achieved by employing pre-wetting processes (both the oil contact angle under water and the water contact angle under oil are over 150°). Specifically, the separation flux and the separation efficiency are higher than 1200 L/m2‧h and 98.0 %, and 2100 L/m2‧h and 97.4 % for the surfactant-stabilized oil-in-water and water-in-oil emulsions, respectively. Furthermore, the ultralow adhesions in liquid contributed to the outstanding reusability and antifouling resistance of the prepared TPB-DMTP-COF/PAN membranes. This work provides a feasible approach for fabricating a smart membrane with under-liquid dual superlyophobicity for oily wastewater treatment.