Blog | 博客

redis reads all keys

1. Full traversal keys keys pattern We have already introduced it in the previous article, you can use it directly keys * There are 5 types of redis values, and different types have different commands to get them: Character directly get key Pop an element from the left end of the queue LPOP key Hash

redis reads all keys Read More »

The case of jquery disappearing and hiding pictures in turn through recursion

The case of javascript jquery disappearing and hiding pictures in turn through recursion <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>Title</title> <style> div{ width: 400px; } img{ width:90px ; height:90px; vertical-align: top; } </style> </head> <body> <input type=”button” value=”hidden animation” id=”btn1″/> <input type=”button” value=”show animation” id=”btn2″/> <div> <img src=”images/1.jpg”/> <img src=”images/2.jpg”/> <img src=”images/3.jpg”/> … The

The case of jquery disappearing and hiding pictures in turn through recursion Read More »

jquery how to get label content

The method of jquery to get the content of the label: 1. Use the “$(‘#id’).val()” method to get the value of the label; 2. Use the “$(‘#id’).text()” method to get the middle of the label 3. Get the html content in the tag through the “$(‘#id’).html()” method. Recommended: “JavaScript Basic Tutorial” get value of label

jquery how to get label content Read More »

How to add jquery’s val() value

var hdcval = $(“#hdelsecount”).val(); hdcval += icount + “,”; $(“#hdelsecount”).val(hdcval); Appends a value to a hidden field. . Original is 0 icount is the number passed in think so $(“#hdelsecount”).val(icount+”,”); I thought I could repeatedly append values, such as 1, 2, 3, 4, but the val() method is overridden. Instead of appending characters to the

How to add jquery’s val() value Read More »

input carriage return trigger event

need You need to enter text in the search box and press Enter to trigger the search event accomplish page code <div class=”index-search”> <input type=”text” name=”indexSearch” class=”inp” value=”<s:property value=”front.key”/>” onkeydown=”tab(event)” placeholder=”Search in this store” id=”ssubmitStore”> <img class=”icon icon-search” src=”/images/djimart-supplier-home/icon_search1.png”> </div> Effect When we enter characters in the text box above, press Enter to achieve automatic

input carriage return trigger event Read More »

Nodejs create server steps

1. Introduce the http module. This module is a built-in module const http = require(‘http’) 2. There is a createServer() function on http to create a server. const server = http.createServer() //得到个服务器对象 3. Listen to the event: listen to the request event sent by the user server.on( ‘request’,function(req,res){ /* req:request简写。语法上只是一个形参而已,请求消息 res:response简写,响应消息 */ console.log(‘一个用户发起了请求’) //此时这里没有响应。按照协议:一个请求必须对应一个响应啊。 res.end(‘hello

Nodejs create server steps Read More »

Build a simple server with nodejs

1. Nodejs server setup nodejs writes a server that others can access; http protocol: a specification that browsers and servers abide by; The communication between the http server and the browser is realized through http Our server, the most important part, is monitoring, that is to say, if http sends a request to the server,

Build a simple server with nodejs Read More »

Finally finished

Original link: https://retire50blog.wang/invest/%E7%BB%88%E4%BA%8E%E5%AE%8C%E6%88%90%E4%BA%86.html The overseas money was finally withdrawn. It took more than two years to transfer back 10 million+ Hong Kong dollars (of which 9 million+ was earned). This matter spent a lot of energy in the past two years, and finally came to an end. Someday in the future, when free exchange is

Finally finished Read More »

Make a squoosh docker image, write blog textures and directly compress files locally, which is safe and efficient

Original link: https://hellodk.cn/post/1077 The mirror is dko0/squoosh:1.12.0 or dko0/squoosh:latest . docker hub: https://hub.docker.com/r/dko0/squoosh GitHub: https://github.com/hellodk34/squoosh Safe, pictures are only in the local browser and will not be uploaded to any server Efficient, Squoosh compression efficiency is amazing, but the picture quality is not lost much, with various compression options and quality settings, a high degree

Make a squoosh docker image, write blog textures and directly compress files locally, which is safe and efficient Read More »

Issue 74: ① My family has been hospitalized due to illness in the past few days,… – @關西的微博 – Weibo ② Why should you try changing a sentence to a new line – Neverland ③ Yesterday I mentioned the cost of civil engineering… – @李白理Bai’s Weibo – Weibo ④ What is the competition between China and the United States? ⑤ Feeling of the price – Luoyuan

Original link: https://pinfive.today/@skyue/74/ 2022.07.20 (issue 74) The family has been hospitalized due to illness these few days,… – @關西的微博 – Weibo Source: weibo.com How the epidemic prevention policy has affected medical treatment, a case. “It’s hard to imagine that this is a worldly situation that can happen in a top tertiary hospital with zero new

Issue 74: ① My family has been hospitalized due to illness in the past few days,… – @關西的微博 – Weibo ② Why should you try changing a sentence to a new line – Neverland ③ Yesterday I mentioned the cost of civil engineering… – @李白理Bai’s Weibo – Weibo ④ What is the competition between China and the United States? ⑤ Feeling of the price – Luoyuan Read More »