---
# System prepended metadata

title: jquery each
tags: [火箭]

---

# jquery each
###### tags: `火箭`

```javascript=
$.each(cards, function (i, card) {
        $(card).prop('draggable', true)
        card.addEventListener('dragstart', dragStart)
        card.addEventListener('drop', dropped)
        card.addEventListener('dragenter', cancelDefault)
        card.addEventListener('dragover', cancelDefault)
    });
```