Nonconventional luminescence polymers without any aromatic structures have attracted great interest from researchers due to their special structure and excellent biocompatibility. However, these materials mostly emit in the blue or green region, in which preparation of materials with long-wavelength (especially near-infrared) emission is still a great challenge. In this work, it is found that 2-(dimethyl amino) ethyl methacrylate (DMA) and itaconic anhydride (ITA) undergo a ring-opening reaction at room temperature, and subsequently generate zwitterionic compound (IDMA). Based on the clustering-triggered emission (CTE) mechanism, ionic bond can effectively promote the isolated electron-rich chromophores to form new emissive clusters with extended electron delocalization. Herein, two oligomers (P1 and P2) with different fluorescence emissions by controlling the concentration of zwitterionic monomers before polymerization are synthesized. It is worth noting that the maximum emission wavelength of P2 at high concentration is up to 712 nm, which is very rare in previous reports. In addition, the resulting oligomer (P2) shows typical aggregation-enhanced emission (AEE), excitation-dependent fluorescence, temperature-sensitive emission, and solvatochromism. The cytotoxicity assay demonstrates that P2 was low toxic to Huh7 and LM3 cells, and suitable for cell imaging. This research provides the possibility for rational molecular design and the feasibility of luminescence regulation.