This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ví dụ về callback truyền thống, nỗi kinh hoàng của developer. | |
// link ref: https://anonystick.com/blog-developer/series-callback-javascript-phan-3-async-await-la-gi-va-su-khac-nhau-giua-promise-trong-javascript-vRwGny6a.jsx | |
const verifyUser = function(username, password, callback){ | |
dataBase.verifyUser(username, password, (error, userInfo) => { | |
if (error) { | |
callback(error) | |
}else{ | |
dataBase.getRoles(username, (error, roles) => { | |
if (error){ | |
callback(error) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ref : https://anonystick.com/blog-developer/tu-hoc-javascript-neu-co-asyncawait-roi-thi-promise-co-con-loi-thoi-khong-can-thiet-dung-den-hay-khong-8znFD1Z3.jsx | |
//home page : https://anonystick.com/ | |
Đây là phần cuối về Series Callback JavaScript. Rất vui để đi đến với các lập trình js đến tận phần 4 và cũng như phần cuối. | |
- Ở phần 1 chúng ta đã giới thiệu và giải thích rõ về callback là gì? Và khi nào callback xảy ra? ở phần này hầu như tôi thấy các | |
bạn cũng chưa hào hứng lắm bởi vì hầu hết các DEVJS( DEVELOPER JS) cũng đã nắm và gặp rất nhiều trường hợp phải sử dung callback. | |
Nên cũng có ít câu hỏi về phần 1. Ok bypass | |
- Ở phần 2 Có vẻ hay hơn khi nói về promise một object của javascript giúp đỡ DEVJS control được callback mà giảm bớt thời gian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
full source: https://anonystick.com/blog-developer/lab-javascript-su-dung-javascript-detect-su-kien-lac-dien-thoai-nhu-momo-zalo-N9TuDyXU.jsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//fullcode https://anonystick.com/blog-developer/firebase-query-arrays-data-in-firebase-6IlqcFBY.jsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bạn đã bao giờ nghe tới cụm từ "Exit-Intent" trong javascript. Nếu như bạn muốn page của mình được nhiều người lưu luyến và có những bất ngờ thú vị cho người dùng thì Exit-Intent là công nghệ đáng học hỏi. | |
Công nghệ Exit-intent là một công nghệ mà dân SEO hay chú ý tới nhất vì hiệu quả nó mang đến trong kỹ thuật tiếp thị thật là tuyệt với. Gọn nhẹ chủ sử dụng javascript. Trang web sử dụng Exit-intent này giúp website có nhiều người đăng ký, tăng doanh số bán hàng, tăng view cho một page và đặt biệt là các page tin tức. Và trong bài học này tôi muốn giới thiệu cho các bạn công nghệ này hoạt động như thế nào? Và việc tích hợp vào website có khó khăn không? | |
Trên đó là những lời nói sơ qua về cụm từ "Exit-Intent". Và để đi sâu vào công nghệ này thì các bạn không làm SEO hay SEO cũng phải chú ý đừng lạm dụng nó quá. Nếu lạm dụng nhiều quá thì người dùng internet có cảm giác bị làm phiền. | |
Công nghệ Exit-Intent là gì? Đó là một công nghệ mà đánh dấu một sự kiện được phát hiện khi người dùng rời khỏi trang website |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trong bài viết này tôi sẽ nói rõ về phần vì sao không nên sử dụng thư viện lazy load (https://github.com/verlok/lazyload). Một lib rất được ưa chuộng, nhưng với | |
riêng tôi thì không? | |
Khi tôi search về từ khoá lazy load là gì? có rất nhiều page cung cấp rất nhiều thông tin các cách sử dụng. | |
Và tất cả đều chung một quan điểm: | |
Lazy load là một công nghệ giúp tăng hiệu suất trì hoãn tải hình ảnh trong các trang web dài vì hình ảnh | |
bên ngoài chế độ xem (phần hiển thị của trang web) sẽ được tải cho đến khi người dùng cuộn đến chúng. | |
Đồng ý là kể từ khi ra đời công nghệ này thì lazy loading giúp trang web của chúng ta được cải thiện rất nhiều. Những trang web | |
có hình ảnh nhiều sẽ được giảm tải về vấn đề load src trong image. | |
Và công nghệ này đã được sử dụng rất nhiều, và cũng có nhiều thư viện javascript cung cấp và hỗ trợ điều này. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2. How to use it | |
isIncognito(function(itIs){ | |
if(itIs){ | |
console.log("You are in incognito mode"); | |
}else{ | |
console.log("You are NOT in incognito mode"); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.2/css/all.min.css"> | |
</head> | |
<style type="text/css"> | |
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Full page slider with css and javascript</title> | |
</head> | |
<style type="text/css"> | |
* { | |
font-family: sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sự khác biệt về kinh nghiệm trong lập trình javascript | |
full source: https://anonystick.com/blog-developer/su-khac-biet-ve-kinh-nghiem-trong-lap-trinh-javascript-0qyWv80U.jsx | |
Mở đầu | |
Trong thực tế cùng nhiều kết quả nhưng lại có nhiều phương pháp giải quyết khác nhau. Nhưng vấn đề ở chỗ ai được trả lương cao hơn, và vì sao họ luôn luôn được lựa chọn cho sự tin tuỏng. Và đây là một bài viết về tính hiệu quả của các devjs lõi làng. | |
Yêu cầu bài toán | |
Cho một chuỗi hãy trả về chuỗi trên với hai điều kiện. Giống như tiêu đề một bài báo. | |
1 - Chữ cái đầu tiên của mỗi từ đều viết hoa. | |
2 - Hãy chắc chắn rằng phần còn lại của từ này là chữ thường. |
OlderNewer