jQuery break and continue
$.each(data, function(index, obj){
$.each(data, function(index, obj){
if (index == 1) {
return; // 等於 continue
} else {
return false; // 等於 break
}
});
[……]
[……]
/** * VECTOR * https://vector.cool */ <script> $('.classname').get(0).tagName; $('.classname')[0].tagName; $('.classname').prop("tagName"); </script>
[……]
[……]