Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 529 Bytes

makePy.md

File metadata and controls

28 lines (19 loc) · 529 Bytes

提取中文首字母

1.引入

    var {
        makePy
    } = require('wx-tool')

2.参数

属性 类型 默认值 必填 说明
str string 中文字符串
type string 1 大小写 默认大写 可选 0

3.使用

    makePy('微信', 1)   // WX
    makePy('微信', 0)   // wx

4.注意事项

只能识别百分之95的字符, 谨慎使用