Search Docs
short()
返回无填充字符的URL友好base64编码字符串表示的ObjectId。
import { ObjectId } from 'funtool'; const id = new ObjectId(); const shortId = id.short(); // 例如 "Xx1_OxyZRAAAAAA"
short(): string
返回一个无填充的base64编码字符串。