我有一个JSON这样的数据:
var data = [
{"city":"seattle", "state":"WA", "population":652405, "land_area":83.9},
{"city":"new york", "state":"NY", "population":8405837, "land_area":302.6},
{"city":"boston", "state":"MA", "population":645966, "land_area":48.3},
{"city":"kansas city", "state":"MO", "population":467007, "land_area":315}
]
我已将此JSON数据添加到我的HTML表中。5 seconds现在,每次单击按钮时如何随机排列这些数据?
alter.addEventListener('click', function() {
//code goes here
})
斯蒂芬大帝
犯罪嫌疑人X
相关分类