Skip to content
New issue

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

js 实现省略号截断方案对比 #77

Open
nmsn opened this issue Jan 3, 2023 · 1 comment
Open

js 实现省略号截断方案对比 #77

nmsn opened this issue Jan 3, 2023 · 1 comment

Comments

@nmsn
Copy link
Owner

nmsn commented Jan 3, 2023

reference

@nmsn nmsn added the JavaScript label Jan 3, 2023
@nmsn
Copy link
Owner Author

nmsn commented Jan 3, 2023

js 实现文本省略号方案的基本原理为:

二分法找到文本在容器边缘的字符,后面字段截断。
思路简单,但其中涉及比较多注意和需要优化的点。

@nmsn nmsn changed the title js 实现省略号阶段方案对比 js 实现省略号截断方案对比 Jan 3, 2023
@nmsn nmsn added the TODO label Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant