Introduction to CSS pseudo selector focus-within

Original: Introduction to CSS pseudo selector focus-within In CSS: the focus-within pseudo selector can be a bit "unusual", although its name looks simple and intuitive.But its explanation is to select an element that contains any child elements with: focus.It's a little confused, but it should be understood by careful reading. H ...

Posted on Thu, 28 May 2020 19:54:54 -0400 by jworisek

js converts string to double to avoid the loss of multi bit number and calculation precision.

Tidy up, when we write js code, we often have a headache because of the decimal operation. Because it will produce many bits and loss of calculation accuracy. In Java code, we can transform in the following three ways parseFloat("123.2") parseInt("121"); parseDouble() But we found the methods in JavaScript. We foun ...

Posted on Thu, 28 May 2020 10:39:50 -0400 by Trevors

[recommended] a large number of Blazor learning resources

Introduction What is Blazor? Blazor allows you to build an interactive Web UI using C rather than JavaScript. The Blazor application consists of reusable Web UI components implemented with C, HTML, and CSS. Both client and server code are written in C, allowing you to share code and libraries. This article mainly brings you some great le ...

Posted on Wed, 27 May 2020 00:53:49 -0400 by optimiss

The use of jump address in thmeleaf

Recently, when using thmeleaf, I encountered a problem, such as the address to jump to is localhost:8080/pro/a/b , jump and find out localhost:8080/pro/path/a/b , so there is more path in the address, which is obviously wrong. In fact, it's different to add / or not add / before the jump address. Before the page jump address, add /, which means ...

Posted on Tue, 26 May 2020 10:13:04 -0400 by retoknaak

Data built in objects

1. Built in object Date Date object 2. Create date object 2.1 create a date object based on the current system time. var date1 = new Date(); //a. Output date object information console.log(date1); //Thu Dec 14 2017 20:55:24 GMT+0800 console.log(date1.toString()); //Thu Dec 14 2017 20:55:24 GMT+0800 //b. Output the date par ...

Posted on Mon, 25 May 2020 12:10:40 -0400 by DanielStead

Data built in objects

1. Built in object Date Date object 2. Create date object 2.1 create a date object based on the current system time. var date1 = new Date(); //a. Output date object information console.log(date1); //Thu Dec 14 2017 20:55:24 GMT+0800 console.log(date1.toString()); //Thu Dec 14 2017 20:55:24 GMT+0800 //b. Output the date par ...

Posted on Mon, 25 May 2020 12:00:41 -0400 by skypilot

Zen reading notes of design patterns - 22 design patterns

Recently, I am reading Qin Xiaobo's Zen of design pattern. This article is another 2000 line long and watery note, recording 22 of the 23 design patterns mentioned in the book, basically copying the definition, advantages, disadvantages, applicable scenarios and demo of each design pattern mentioned in the book. It is recommended to read the o ...

Posted on Mon, 25 May 2020 11:50:54 -0400 by philippe2

js realizes function anti shake and throttling

Conceptual understanding Anti shake: the callback is executed after the event is triggered for n seconds. If the event is triggered again within n seconds, the timing will be re timed. Throttling: the function can only be triggered once in a unit time. If the function is triggered more than once per unit time, only one will take effect. The dif ...

Posted on Fri, 22 May 2020 12:54:33 -0400 by emopoops

Submit forms and upload pictures using FormData form data objects

Using FormData form data objects in H5, the name and value of all form elements in the form form form can be combined into a request string and submitted to the background.You can use js to simulate a series of form controls with some key-value pairs, or you can use the send() method of XMLHttpRequest to submit the form asynchronously. <bo ...

Posted on Thu, 21 May 2020 12:37:40 -0400 by fean0r

[2020Python cultivation] Bootstrap, a front-end framework for front-end development

1, Introduction The framework has written many page styles for you. If you need to use it, you only need to download its corresponding file, and then directly copy cv When using Bootstrap, all page styles need to be adjusted by class v3 is recommended for version selection: https://v3.bootcss.com/ [note] The js code of bootstrap depends ...

Posted on Thu, 21 May 2020 08:09:12 -0400 by 3dron