cssscript.com

Tiny Modern Shopping Cart Library – cart-localstorage

A small (~3kb minified) shopping cart component that uses HTML5 local storage to remember the cart items (products) the users added to the cart. Also provides a functionality to calculate the total price of selected products in the shopping cart. How to use it: 1. Install & download the package and load the JavaScript file from the dist folder or from a CDN: # Yarn $ yarn add...

viblo.asia

Cải thiện hiệu suất chương trình javascript

Javascipt đang dần trở lên bá chủ và là ngôn ngữ lập trình phổ biến nhất hiện nay, là tiền đề cho hàng loạt những front-end framwork, plugin nổi tiếng đang dần làm thay đổi thế giới. Chính vì thế việc học và hiểu rõ ngôn ngữ này, chỉ nó thôi cũng giúp lập trình viên không sợ chết đói trong mội trường đầy...

programmer group

Some optimization methods of front-end reference font @ font face

1 Preface 1.1 scenario When we display on the page, for better effect, we usually use a custom font@fant-face 。 I used some custom fonts in my previous development. Here is a summary of some of the solutions I am looking for. This article only lists the introduction of local fonts. Due to the lack of practice, the introduction of network Fonts is less. I made a fool of myself 2 text 2.1...

programmer group

Large file fragment upload based on node.js

Large file fragment upload based on node.js When we upload a file, if the file is too large, it may cause the request to time out. Therefore, when it is necessary to upload large files, it is necessary to upload files in segments. At the same time, if the file is too large, in the case of poor network, how to do breakpoint transmission? It is also necessary to record the current uploaded...

programmer group

Experience the pipeline function of usually.js - pipe function

Experience the pipeline function of usually.js — pipe function usually.jsIs a JavaScript function library for modern web development, based on ES6 development. The latest version 2.4.1 and the latest version usually.js add pipeline function——pipeFunction. What is a pipeline function? The function of pipeline is to pass the result of the previous step directly to the function of the...

programmer group

Cookie explanation and implementation of a cookie operation Library

Cookie explanation and implementation of a cookie operation Library Cookies have a lot of applications in the front end, but sometimes we don’t know much about them. Let’s take a look at its specific usage Set-Cookie The server sets the cookie of the client by setting the response header, as follows: Set Cookie: < cookie name > = < cookie value > Multiple set cookies...