» Articles for June 2020 Year

 
Sort articles by: Date | Most Rates | Most Views | Comments | Alphabet

Use front-end Javascript download file

Author: bamboo06 on 17-06-2020, 16:43, views: 3169

0 There is often a need to export data to Excel during project development, or to download documents. The simplest way to download is to directly request the file address of the server and download the file through the browser http. But in development, due to project requirements, the address of the file you want to download will not be exposed to the user, and authentication is required to allow the download of the file. What should we do at this time?
Use front-end Javascript download file

Category: Javascript

 

NProgress.js-page loading progress bar

Author: bamboo06 on 9-06-2020, 20:54, views: 4597

0 NProgress.js provides a page loading progress bar effect. When the page opens and loads, a progress bar loading animation will appear at the top of the page. NProgress.js is a lightweight progress bar component that is easy to use and can be easily integrated into single-page applications.
NProgress.js-page loading progress bar

Directly quote the nprogress.js and nprogress.css files to your page.

Category: Javascript / Plugins

 

PHP errors and exception handling

Author: bamboo06 on 9-06-2020, 20:26, views: 2554

0 Unlike other programming languages ​​that throw exceptions when encountering errors, PHP also has an exception mechanism when handling objects, but PHP will perform as happily as possible and ignore what happened, unless it encounters an extremely serious error. There is an exception. This article outlines PHP-related error exception handling mechanisms.
PHP errors and exception handling

PHP has several error severity levels. The three most common types of information are errors, notices, and warnings. They have different severity: E_ERROR, E_NOTICE and E_WARNING. The error is a serious problem during operation, usually caused by code error, it must be corrected, otherwise PHP will stop execution. Notifications are information of a recommended nature, because the program code may cause problems during execution, but the program will not stop. The warning is a non-fatal error, and program execution will not be aborted.

Category: PHP Scripts