直接通过:style引入即可
methods: {
style() {
let R = Math.floor(Math.random() * 255);
let G = Math.floor(Math.random() * 255);
let B = Math.floor(Math.random() * 255);
return "rgb(" + R + "," + G + "," + B + ")";
},
},
直接通过:style引入即可
methods: {
style() {
let R = Math.floor(Math.random() * 255);
let G = Math.floor(Math.random() * 255);
let B = Math.floor(Math.random() * 255);
return "rgb(" + R + "," + G + "," + B + ")";
},
},