How to get the caret column (not pixels) position in a textarea, in characters, from the start?

后端 未结 4 1543
时光说笑
时光说笑 2020-11-21 06:41

How do you get the caret position in a