返回一个占位图url,支持size, background, foreground, format, text
@cname
生成一个中文名
@datetime
生成一个随机的时间
let Mock =require('mockjs');let result = Mock.mock({"code":0,"message":"请求成功","data|20":[{"id":"@id","ip":"@ip","name":"@cname","userId":"@id","stars|2":['★'],"colors|2":{red:'red',yellow:'yellow',blue:'blue'},"avatar":"@image()","createAt":"@datetime"}]})
console.log(result);