All 1 H NMR spectra were recorded on a Bruker AVANCE III™ 500 spectrometer (500 MHz) by using CDCl3 as a solvent. GPC data were obtained from Waters GPC system equipped with a Waters 1515 isocratic HPLC pump, a 2414 refractive index (RI) detector, and two Waters' HPLC columns. Tetrahydrofuran was used as the solvent for polymers and eluent for GPC with a flow rate of 1 ml min−1 at 30 °C. The GPC instrument was calibrated with narrowly dispersed linear polystyrene standards. Transmission electron microscopy (TEM) images were obtained using a JEM-2100 F TEM instrument. Samples were prepared by dip-coating a 400-mesh carbon-coated copper grid from the dilute sample solution allowing the solvent to evaporate. GC/MS analysis were obtained on an Agilent 6890 Series GC System with a Hewlett-Packard 5973 Mass Selective Detector (70 eV) using a HP-5MS fused silica capillary column (cross-linked 5% phenyl ethyl siloxane, 30 m × 0.25 mm ID × 0.25 μm film thickness) and argon as a carrier gas (1 mL/min). The split ratio was 1:50. The injector temperature was kept at 270 o C and detector was kept at 280 oC. The column temperature was held at 60 o C for 3 min, increased to 280 o C at a rate of 25 oC/ min, and then kept at 280o C for 5 min. A Quantachrome Autosorb IQ surface area and porosity analyzer were utilized to study the pore structure of the samples. Before measurements, the polymer samples were degassed for more than 10 h at 120 °C. The Brunauer–Emmett–Teller surface area and the micropore surface area were determined by the BET equation and the t-plot equation, respectively. The pore size distribution was analyzed by original density functional theory (DFT). FT-IR analysis was carried out using the Thermo NICOLET iS50. The powder X-ray diffraction (XRD) patterns of samples were recorded on an Ultima IV, Rigaku model D/MAX-50KV system (Cu Kα radiation, λ =1.5418 Å). UV − vis spectra were recorded using a SOPTOP UV2400 spectrophotometer.