当前位置:网站首页>uni-app - 获取汉字拼音首字母(根据中文获取拼音首字母)
uni-app - 获取汉字拼音首字母(根据中文获取拼音首字母)
2022-08-11 03:26:00 【王佳斌】
前言
如果您需要微信小程序版的,请访问 这篇文章。
例如 “中国” 的首字母就是 “Z”,我们需要通过代码来自动得出结果。
您可以传入中文字,会自动返回其首字母(结果可控制大小写),如下代码所示:
console.log(pin.边栏推荐
- What kind of programming trading strategy types can be divided into?
- [yu gong series] Go program 035-08 2022 interfaces and inheritance and transformation and empty interface
- 互换性与测量技术——表面粗糙度选取和标注方法
- QueryDet:级联稀疏query加速高分辨率下的小目标检测
- 聊聊对RPC的理解
- 增加对 Textbundle 的支持
- 高度塌陷问题的解决办法
- 21 Day Learning Challenge Week 1 Summary
- Homework 8.10 TFTP protocol download function
- [DB operation management/development solution] Shanghai Daoning provides you with an integrated development tool to improve the convenience of work - Orange
猜你喜欢
随机推荐
The problem that Merge will be lost again after code Revert has been solved
求和、计数的窗口函数应用
互换性测量技术-几何误差
音视频开发,为什么要学习FFmpeg?应该怎么入手FFmpeg学习?
Docker 链接sqlserver时出现en-us is an invalid culture错误解决方案
rac备库双节点查询到的表最后更新时间不一致
“顶梁柱”滑坡、新增长极难担重任,阿里“蹲下”是为了跳更高?
The impact of programmatic trading and subjective trading on the profit curve!
The 125th day of starting a business - a note
Goodbye Chengdu paper invoices!The issuance of electronic invoices for accommodation expenses will soon completely replace the invoices of hotels, catering and gas stations
Add support for Textbundle
Unity2D animation (1) introduction to Unity scheme - animation system composition and the function of use
Window function application of sum and count
高度塌陷问题的解决办法
[Pdf generated automatically bookmarks]
21天学习挑战赛第一周总结
【LeetCode】Day112-repetitive DNA sequence
VIT 源码详解
typedef定义结构体数组类型
EasyCVR接入海康大华设备选择其它集群服务器时,通道ServerID错误该如何解决?









