t-comm
Version:
专业、稳定、纯粹的工具库
22 lines (21 loc) • 369 B
TypeScript
/**
* 获取ip地址
* @returns 字符串,形如 x.x.x.x
*
* @example
* ```ts
* getIPAddress() // 10.10.10.10
* ```
*/
export declare function getIPAddress(): string;
/**
*
* 获取ip的字符串
* @returns 字符串,形如 x_x_x_x
*
* @example
* ```ts
* getIPAddressStr() // 10_10_10_10
* ```
*/
export declare function getIPAddressStr(): string;