Home >Web Front-end >JS Tutorial >JQuery implements the example code of merging the same cells in the table_jquery

JQuery implements the example code of merging the same cells in the table_jquery

WBOY
WBOYOriginal
2016-05-16 17:31:121025browse

Code:

Copy code The code is as follows:




merge.html

















































销售时间 裙子 裤子 风衣 鞋子
8:00-9:00 3 4
9:00-10:00 3 2 5 3
10:00-11:00 3 2 1
11:00-12:00 1





总结:在使用remove的时候,一定要注意如果 从list的开始元素循环下去,remove掉一个元素后,有些元素就找不到了或者说不是要找的那个元素;最好是从后面开始循环。
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