# Convert-Pinyin **Repository Path**: yinuocode/convert-pinyin ## Basic Information - **Project Name**: Convert-Pinyin - **Description**: js 汉字获取首字母,汉字转拼音 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2021-06-09 - **Last Updated**: 2022-12-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 功能包括 - 根据字符串返回所有字符串首字母 - 根据字符串返回字符串第一个字符的首字母 - 根据字符串返回所有字符串全拼 - (字符串可以是汉字、数字、字母) ## 使用 1. html 中引入 convert-pinyin.js 2. getChineseStrPY('需要处理的字符串'); ## 案例 - 案例见 test.html