Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
divのテキストがjqueryで内部に持つ単語の高さまたは数を計算するにはどうすればよいですか?
height() を使用できます。これを試してください
var height = $("div").height();
Oと単語を数えるには、次のようなものがあります
var words = $('div').text().split(' ').length;