I wrote a small function to change the table row sequence over the weekend and directly pasted the code.
The table is as follows:
Time details operation
Js Code, which will add class = danger after the change order for the row to be changed
<Script type = "text/javascript"> '. move_btn '). click (move_act = $ (). attr ('move _ act ''# test_table tbody tr '). removeClass ('danger '(move_act = 'up '). parent (). parent ('tr '). addClass ('danger '). parent (). parent ('tr' (move_act = 'low '). parent (). parent ('tr '). addClass ('danger '). parent (). parent ('tr' "$ ('# test_table tbody tr '). removeClass ('danger '); ", 2000 </script>
After the change, you can submit the new order according to the unique mark of each row.
Tucao: companies that shout "overtime" = "wolf" are not suitable for normal human survival. They regard "weekend overtime" as a promotion and comment on whether employees have a wolf.