当前位置:网站首页>uni-app - 获取汉字拼音首字母(根据中文获取拼音首字母)
uni-app - 获取汉字拼音首字母(根据中文获取拼音首字母)
2022-08-11 03:26:00 【王佳斌】
前言
如果您需要微信小程序版的,请访问 这篇文章。
例如 “中国” 的首字母就是 “Z”,我们需要通过代码来自动得出结果。
您可以传入中文字,会自动返回其首字母(结果可控制大小写),如下代码所示:
console.log(pin.
边栏推荐
- (CVPR-2017)在身体和潜在部位学习深度上下文感知特征以进行行人重识别
- What does the sanction of the mixer Tornado mean for the DeFi market?
- flink The object probably contains or references non serializable fields.
- console.log alternatives you didn't know about
- 广州纸质发票再见!开住宿费电子发票即将全面取代酒店餐饮加油站发票
- Add support for Textbundle
- STC8H development (15): GPIO drive Ci24R1 wireless module
- leetcode: 358. Reorder strings at K distance intervals
- QueryDet:级联稀疏query加速高分辨率下的小目标检测
- 输入起始位置,终止位置截取链表
猜你喜欢
随机推荐
互换性与测量技术-公差原则与选用方法
CSDN 博客更换皮肤
Docker 链接sqlserver时出现en-us is an invalid culture错误解决方案
pathman_config、pathman_config_params 删除后,如何重建?
二叉树相关代码题【较全】C语言
Google search skills - programmer is recommended
MongoDB 基础了解(二)
"Life Is Like First Seen" is ill-fated, full of characters, and the contrast of Zhu Yawen's characters is too surprising
js中的this问题
Roewe imax8ev cube battery security, what blackening and swelling are hidden behind it?
Summary of debugging skills
How can users overcome emotional issues in programmatic trading?
Window function application of sum and count
"Beijing-Taiwan high-speed rail" debuted on Baidu map, can it really be built in 2035?
The "top pillar" slides, and new growth is extremely difficult to shoulder the heavy responsibility. Is Ali "squatting" to jump higher?
(CVPR-2017)在身体和潜在部位学习深度上下文感知特征以进行行人重识别
How does MSP430 download programs to the board?(IAR MSPFET CCS)
leetcode: 358. Reorder strings at K distance intervals
Entity to Vo conversion
Multi-merchant mall system function disassembly 26 lectures - platform-side distribution settings