php native pull-up loading, click load more (jQuery,ajax,mysql)

Design purpose When there is a lot of data in a website, it needs to be paged and browsed easily. In order to turn pages conveniently, we abandon the traditional Click to turn pages, pull down directly, and load data automatically constantly, so that we can read conveniently. design principle Through ajax to the back-end interface to initiate p ...

Posted by mr_griff on Mon, 02 Dec 2019 08:04:27 -0800

Design of api request duration and request data type

Preface In our business requests, there are times when we have strategic settings for different lengths of demand.This requirement is detailed here. In this case, our timout is usually based on the request address, so the core processing technique is how to set different timeout for different request addresses. The request time we set up earlie ...

Posted by MastahUK on Mon, 02 Dec 2019 07:20:21 -0800

Spring Boot implements file upload server and echo

Directory Express 1. Import dependency package: 2. Use the mullitypart in spring MVC 1) get the stream of picture file through MultipartFile img 2) use IOUtils to save pictures locally 3. Map local file to URL by configuring WebMvcConfigurerAdapter 4. Test whether the upload is successful through PostMan 1. Import depen ...

Posted by cocell on Mon, 02 Dec 2019 05:29:19 -0800

About the use of gson Library

The communication carrier between different programs, using json is a more convenient format, of course, the advantages of this format can be found at night, if speaking of the disadvantages, it may be all string transmission, the efficiency is not so high, but for general development programs, especially for Internet programs, more than enoug ...

Posted by jimmyborofan on Mon, 02 Dec 2019 03:16:30 -0800

angularjs http and background interaction

1. description Whether using angularjs as the front-end or combining with ionic to develop mobile app, it needs to interact with the back-end, and angular provides httpModule module for us to use. Today we will show a specific process of encapsulation and use of http. 2. HttpModule introduction Find the app.module.ts file import { NgModule, Err ...

Posted by aswini_1978 on Sun, 01 Dec 2019 18:50:20 -0800

python data file reading and writing

CSV Format reading and writing Comma separated values are sometimes referred to as character separated values because the separated characters can also be non commas. Separated files are called csv and separated files are called tsv One thing to note: separator import csv data=[] with open(r'data.csv',) as csvfile: file_list = csv.read ...

Posted by ethridgt on Sun, 01 Dec 2019 12:56:10 -0800

Advanced front-end module 1 for beginners

1. Analysis task Using AJAX to read JSON file data, using loop and conditional statements to store the required data in each array, combining with change event can achieve the required functions 2. Analysis of advantages and disadvantages Advantage: not only in the implementation of its basic functions, but also in the json file to change the a ...

Posted by Millar on Sun, 01 Dec 2019 10:44:09 -0800

Replace node JS express view engine jade with html

The default view engine generated by express project is jade. At that time, I preferred html pages in development, so this article introduces how to replace the default view engine jade of express with html Step 1: open the app.js file of the project. The contents of the app.js are as follows: var createError = require('http- ...

Posted by seanrock on Sun, 01 Dec 2019 08:23:54 -0800

Make a chat room with gorilla websocket

This demo implements: Message broadcasting Heartbeat detection Chat via command line The specific logic is in websocket.go The core here is the global variable aliveList, which is responsible for distributing messages to clients. Events are passed through channel s to reduce blocking A single link will be registered in the Livelist, and ConnL ...

Posted by coderage on Sun, 01 Dec 2019 05:49:22 -0800

Sorting out Java related problems

1. A large number of close ﹣ wait occurred in the okhttpclient call. Problem location: If there is a large number of close ﹣ wait in the system, it indicates that there is a problem in your code, that is, the connection is not closed. In OkHttpClient, the default value of HTTP header field Connection is keep alive, which will cause the cli ...

Posted by msnhockey on Sun, 01 Dec 2019 05:05:53 -0800