React 页面中插入图片 React 页面中设置背景图 网上看好多都不能用,正确的做法: backgroundImage: "url(" + require("../imgs/bg_pc.jpg") + ")" 只要是在页面中,直接加载图片资源都要使用 require