易网时代-编程资源站
Welcome
微信登录
首页
/
脚本样式
/
JavaScript
/
javascript table排序 这个更简单了,不用改变现在的表格结构
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
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需刷新才能执行]
版权所有©石家庄振强科技有限公司2024
冀ICP备08103738号-5
网站地图