jQuery on hover

jquery,es6

    $('span').hover(
        function() {
            $(this).removeClass("hidden");
        }, function() {
            $(this).addClass("hidden");
        }
    )

Có thể bạn đã miss một số snippets code

serialize Form

Sử dụng formdata constructor để convert form, FormData, array.from(). Kết hợp window.encodeURIComponent() để encode từng value trong form.

Await in a for loop

How to Await in a for loop

Using promises to catch errors

Filter Unique Values

Kiểu đối tượng Set đã được giới thiệu trong ES6 và cùng với ..., ‘spread’ operator, chúng ta có thể sử dụng nó để tạo một mảng mới chỉ với các giá trị duy nhất.

Ajax, call jQuery POST to node.js expressjs

Ajax, call jQuery POST to node.js expressjs