2012-02-21 124 views
3

我需要獲取光標在其中的行號,或者更好的光標在可控元件中的偏移量。我怎樣才能得到一個contenteditable html元素的遊標行號?

我該如何做到這一點?

+0

請添加例如HTML'