相关文章推荐
阳刚的核桃  ·  十. ...·  2 年前    · 
强悍的牛排  ·  C# ...·  2 年前    · 
let color = '' let r = Math.floor(Math.random() * 256) let g = Math.floor(Math.random() * 256) let b = Math.floor(Math.random() * 256) color = `rgb(${r},${g},${b})` return color// 所有方法的拼接都可以用ES6新特性`其他字符串{$变量名}`替换

datalist 为接口返回的数据列表