We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无
No response
tdesign-common/js/utils/helper.ts
Lines 103 to 137 in e82c00e
阅读源代码一直很奇怪,为什么不使用 String.length方法来判断长度,而是特意判断了英文中文,这里面的深意是?
The text was updated successfully, but these errors were encountered:
👋 @loganylwu,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
♥️ 有劳 @xiaosansiji 尽快确认问题。 确认有效后将下一步计划和可能需要的时间回复给 @loganylwu 。
这里获取的是字节长度,英文字母是一个字节,中文一个字是占用两个字节
xiaosansiji
No branches or pull requests
tdesign-common 版本
无
重现链接
No response
重现步骤
tdesign-common/js/utils/helper.ts
Lines 103 to 137 in e82c00e
阅读源代码一直很奇怪,为什么不使用 String.length方法来判断长度,而是特意判断了英文中文,这里面的深意是?
期望结果
No response
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: