Lenix

How do you determine which version of the HTTP protocol to use when building the HTTP request line?

The current mainstream HTTP protocol versions are HTTP/1.1, HTTP/2, HTTP/3 (experimental). The specific version used when the request occurs is determined by the client, and the client and the server negotiate together. For example, a client that supports HTTP/2 will indicate that it supports h2 and http/1.1 in the ALPN (Application-Layer Protocol Negotiation) extension when […]

How do you determine which version of the HTTP protocol to use when building the HTTP request line? Read More »

js to determine whether a string contains a string of five methods

Method 1: indexOf() (recommended) var str = “123”; console.log(str.indexOf(“3”) != -1 ); // true The indexOf() method returns the first occurrence of a specified string value in a string. If the string value to be retrieved does not appear, the method returns -1. Method 2: search() var str = “123”; console.log(str.search(“3”) != -1 ); //

js to determine whether a string contains a string of five methods Read More »

Problems using mysql “=null”

select last_name , job_id from employees where manager_id is null ; select last_name , job_id from employees where manager_id <=> Null ; select last_name , job_id from employees where manager_id = Null ; last = null is wrong If one of the values, strings, or expressions on either side of the equal sign is NULL,

Problems using mysql “=null” Read More »

Rendering html objects in layui table

The first <script type=”text/html” id=”see-bar”> <a class=”layui-btn layui-btn-primary layui-btn-xs ” data-id=”” onclick=”see(this)” lay-event=”See” style=”color:#2880cb”>< /a> </script> table.render({ . . . , cols: [[ , { ‘13%’, title: ‘card number’, align: ‘center’, rowspan: ‘1’, toolbar: ‘#see-bar’ } ]] . . . }); the second , cols: [[ { type: … The post rendering html objects in

Rendering html objects in layui table Read More »

js method to split string

js method to split string Applicable to each scene is different const arr = [ ‘1-2’ , ‘1-3’ , ‘2-3’ , ‘3-4’ ] ; 1. string.split() Separated by special characters ‘1-2’ . split ( ‘-‘ ) // [‘1’, ‘2’] 2. String.substring(start,stop) start is required. A non-negative integer specifying the position in string of the first

js method to split string Read More »

layui table tree, supports asynchronous requests – jquery,js treetable

The layui table tree supports asynchronous requests, supports reload and reloading, supports sort sorting and sorting, can asynchronously request background data to generate new cotyledon nodes, and can edit cells and other functions. https://gitee.com/yangqianlong98/tableTree … The post layui table tree, supports asynchronous requests – jquery,js treetable first appeared on Lenix Blog . This article is

layui table tree, supports asynchronous requests – jquery,js treetable Read More »

Common binding events and on delegate events in jQuery – jquery dynamically generates html onclick does not work

Take the click event as an example: Normal binding event: $(‘.btn1’).click(function(){} binding on binding event: $(document).on(‘click’,’.btn2′,function(){} binding So what’s the difference between these two ways? First let’s look at the difference in practice: ①The click event is after the page is loaded, all the elements with the class name btn1 are obtained, and then the

Common binding events and on delegate events in jQuery – jquery dynamically generates html onclick does not work Read More »

Detailed explanation and optimization of the reasons for the freeze in live broadcast

With the development of live video streaming, many live streaming teams may encounter live video freezes, frequent buffering flags, or live video clips. What are the reasons for the lag in live video viewing? In combination with practical experience, I also made an anatomical analysis of the problem and solution of the stuck live broadcast

Detailed explanation and optimization of the reasons for the freeze in live broadcast Read More »

Overview of Web Front-End Performance Optimization

Excellent performance, giving users a smooth experience and reducing the loss of users. This article introduces the ideas and methods to improve front-end performance. Included Performance can be divided into load-time performance and runtime performance . Load-time performance refers to the performance of the page loading process. Runtime performance refers to the performance of the

Overview of Web Front-End Performance Optimization Read More »