javascript table排序 这个更简单了,不用改变现在的表格结构

JavaScript实现可自定义排序的表格 -
Name Age Position Income Gender
John 37 Managing director 90.000 Male
Susan 34 Partner 90.000 Female
David 29 Head of production 70.000 Male
Laura 29 Head of marketing 70.000 Female
Kate 18 Marketing 50.000 Female
Mona 21 Marketing 53.000 Female
Mike 21 Marketing 53.000 Male
Mark 25 Production 52.000 Male
Peter 33 Production 55.000 Male
Jennifer 24 Production 49.000 Female
David 25 Photography 51.000 Male
Anna 42 Head of photography 56.000 Female
Rita 30 Photography 54.000 Female
Magnus 25 Freelancer 65.000 Male
Johnny 29 Freelancer 63.000 Male

[Ctrl+A 全选 注: 如需引入外部Js需刷新才能执行]

你可能感兴趣的:(javascript table排序 这个更简单了,不用改变现在的表格结构)