Ask the boss, a javascript programming problem.

I currently have a table how to do it. I can select any number of cells to merge or split to solve.

May.22,2022

A simple example that only supports the merging of two adjacent rows of cells, but that's the general idea. Just make a good judgment.
https://jsfiddle.net/g1tuvjhx/

Menu