emoji
// 用法
randBox.emoji();
randBox.emoji({ category: "smileys_and_emotions" });
randBox.emoji({ length: 5 });
返回一个随机表情符号。
randBox.emoji();
=> '😀'
默认是从随机选择的类别中获取单个随机表情符号。
可选择指定长度以增加来自单个随机选择类别的表情符号数量。
randBox.emoji({ length: 5 });
=> '🍈🍍🫐🫒🌽'
可选择指定表情符号的类别。
randBox.emoji({ category: "symbols" });
=> '🚾'
可用的表情符号类别有:
"smileys_and_emotion", "people_and_body", "animals_and_nature", "food_and_drink", "travel_and_places", "activities", "objects", "symbols", "flags"
默认类别 "all"
将导致从上述选项中随机选择一个类别。
最后更新于: