$(".docteam_right_Ch").each(function () {
var text = $(this).text();
var ping = getPinYinByName(text).toUpperCase();//转换拼音的同时转换大写
var str = ping.replace('-','');// 去掉某些横杠 -
$(this).nextAll('.docteam_right_py').text(str);
});
js文件function.js