Delete Last Char of String with Javascript

前端 未结 9 725
独厮守ぢ
独厮守ぢ 2021-02-07 05:57

I have a DIV with some characters. How can I remove the last character from the text with each click on the DIV itself?

9条回答
  •  被撕碎了的回忆
    2021-02-07 06:19

    Plain JavaScript:

    This is some text

提交回复
热议问题