前言 vue中行内样式绑定采用驼峰写法 // 写法一: :style="{ backgroundImage: 'url(' + 变量name + ')'" // 写法二: :style="{ backgroundImage: `url{ ${变量name} }` }"