Home  >  Article  >  Backend Development  >  javascript-如何获取p标签的行数/字数?

javascript-如何获取p标签的行数/字数?

WBOY
WBOYOriginal
2016-06-02 11:34:133298browse

javascriptphphtml

如题,请问如何判断/获取p标签(或textarea 文本域)的行数?

如:不管是自动换行,还是用户手动换行,只能输入5行.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn