有新功能的话可能会更新这个文档

sdfsdf.dev使用手册

1. 返回lorem单词

使用sdfsdf.dev/[number][w|word|words]{,}

image.png

例如:

  • sdfsdf.dev/5w
  • sdfsdf.dev/10words,

说明:

  • number:lorem单词个数----最大值为500
  • w|word|words :三种形式都可识别
  • , :将返回的lorem以空格拆分为数组(可选)

2.返回lorem句子

使用sdfsdf.dev/[number][s|sentence|sentences]{,}

image.png

例如:

  • sdfsdf.dev/5s,
  • sdfsdf.dev/2sentence

说明:

  1. number :需要的lorem句子数量----最大值为500
  2. s|sentence|sentences :三种形式都可
  3. , :将返回的lorem以.拆分为数组(可选)

3.返回lorem段落

使用sdfsdf.dev/[number][p|paragraph|paragraphs]{,}

image.png

例如:

  • sdfsdf.dev/5p,
  • sdfsdf.dev/3paragraphs

说明:

  1. number :需要的lorem段落数量----最大值为500
  2. p|paragraph|paragraphs :三种形式都可
  3. , :将返回的lorem以\n(换行符)拆分为数组(可选)

4.返回占位图

使用sdfsdf.dev/[width]x[height].[jpg|png]{,[bgColor],[textColor]}

image.png

例如:

  • sdfsdf.dev/400x200.jpg
  • sdfsdf.dev/300x500.png
  • sdfsdf.dev/200x200.jpg,yellow,blue
  • sdfsdf.dev/200x200.png,ffffff,eaeaea

说明:

  1. width :占位图宽度
  2. height :占位图高度
  3. jpg|png :需要返回的图片格式,目前可选jpg或png
  4. ,bgColor,textColor:设置图片背景和文字颜色,支持16进制(不带#号),两个逗号不可省略
    • bgColor:图片背景颜色
    • textColor:图片文字颜色

5. 随机字符选择器

使用sdfsdf.dev/random,[...randomChar]

image.png

例如:

  • sdfsdf.dev/random,A,V,C,S
  • sdfsdf.dev/random,231,ASD,dq123,bilibili 干杯

说明:

  1. ...randomChar:需要返回的随机字符,以逗号分隔