This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我在 li 标签中有一堆单词,但我想在每个字符后添加一个空格。我认为这会起作用,但我做错了什么。谁能帮我吗?
$("#words li").each( function(){
var val = $(this).html();
var len = val.length
for(var i=0; i<len; i++)
{
$(this).html().slice(i, i+1).append("<br>");
};
});