63. Notice to new visitors: JQuery's . · 4. You should remove the # from the alert, you dont need it :-) · 1. attr("#data-id")) is wrong. · @ ... ... <看更多>
Search
Search
63. Notice to new visitors: JQuery's . · 4. You should remove the # from the alert, you dont need it :-) · 1. attr("#data-id")) is wrong. · @ ... ... <看更多>
data () and $.attr() are very common functions we use daily. HTML5 introduces data-* attributes on DOM elemnts to store extra information. ... <看更多>
data or .attr , because mixing both can result in unexpected behavior, at least when you don't know how jQuery works. I understand it's by- ... ... <看更多>