1.1.0 • Published 9 months ago
lg-vtils v1.1.0
前端工具库
1、copyText(text)
参数
参数 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
text | string | 是 | 要复制的文本。 |
示例
copyText('复制文字,参与活动!【xekkfe$3$%】');
// => true
2、callPhone(phoneNumber)
参数
参数 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
phoneNumber | number | string | 是 | 电话号码。 |
示例
callPhone(10086);
callPhone('10086');