函数库, 面向复杂业务场景的 js 类库
获取字符串中指定字符的个数
Demo:
import { charCount } from 'func-package'; charCount('abc-def-h5-dooring', '-'); // -> 3