A novel strategy and technique were used to directly construct hollow nanofibers.
Hollow nanofibers were fabricated via one-pot coaxial electrospinning technology.
Photoluminescence, electricity and magnetism were assembled into hollow nanofibers.
Photoluminescence, electricity and magnetism of the hollow nanofibers can be tuned.
Design conception and construction strategy are of universal significance.