获取拼音的js var pinyinNmae = $("body").val(name).toPinyin().substr(0, 1);得到拼音首字符 转载于:https://www.cnblogs.com/guilf/p/9525990.html