Tag:utilize

  • Question 43: how to use Es5 and ES6 to change the attributes of listening objects?

    Time:2021-10-17

    Using object.defineproperty implementation of Es5 let student = {}; let age = undefined; Object.defineProperty(student, ‘age’, { get: function() { //Triggered when the property is obtained return age; }, set: function(val) { //Triggered when the property value is set age = val; } }); student.age = 20; console.log(student.age); // 20 Proxy implementation using ES6 let student […]

  • An adaptive and easy-to-use CSS

    Time:2021-10-14

    Mainly using CSS max-width:min-content The following code shows <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Document</title> <style> .box{ width: 100px; } .boxMain{ display: flex; justify-content: space-between; padding: 2px 8px; border: 1px solid #ccc; background-color: aqua; overflow: hidden; color: #fff; width: 100%; max-width: min-content; } .l{ max-width: min-content; /*Overflow is displayed with […]

  • MySQL – JDBC connection

    Time:2021-10-4

    Mysql database connection using JDBC There are six steps 1. Load the registered driver When creating Maven project with idea, you can import MySQL driver package directly from POM file; If you do not use Maven to import jar packages, you can add them yourself; Maven coordinates driven by MySQL: <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.23</version> </dependency> […]

  • Graphic webpack – Optimization

    Time:2021-10-2

    Firstly, a mind map drawn by mindmaster is used to explain the main content of this paper. Readers can expand their own mind map on this basis.Besides the basic configuration, webpack also needs to be optimized. For the development environment, it mainly optimizes the packaging construction speed and code debugging; For the production environment, it […]

  • Graphic webpack — implementing loader

    Time:2021-9-26

    Pay attention to the official account “Kite holder”, get learning resources. The loader assumes the responsibility of the translator, which makes up for the problem that webpack can only understand JavaScript and JSON files, so it can handle other types of files. Therefore, the importance of loader to webpack is self-evident, so learning to build […]

  • Vue3 and dependency injection

    Time:2021-9-23

    Vue3 and dependency injection This article was written on February 19, 2021 In react, we can implement singleton, injection… And many other features through context and usecontext. See the previous article for details:How to manage global state with react hooks. For example: const SomeService = createContext(null); const useRootSomeService = () => { const [n, setN] […]

  • Four traps of data innovation

    Time:2021-9-16

    Introduction: there is no need to talk about the importance of data today. All enterprises are aware of the importance of data and hope to use data to drive business development. However, many enterprise information managers still have some misunderstandings about data intelligence and data-driven, which will lead to the abyss of enterprise data utilization. […]

  • Three terminal development based on react native & ant D Mobile

    Time:2021-9-10

    For mobile applications, it is necessary to adapt IOS, Android and wechat. Search, experiment, thinking… After several rounds in a few days, we finally decided to use react native & ant D mobile to achieve our goal. Ideas & Choices Search on the Internet and see a variety of schemes. First, use Redux to share […]

  • Pat 1076forwards on Weibo (30 points)

    Time:2021-9-2

    Pat 1076forwards on Weibo (30 points) Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with followers relations. When a user makes a post on Weibo, all his/her followers can view and forward […]

  • There are four ways to implement “for loop” with jQuery framework!

    Time:2021-8-31

    Summary:Share several common methods for traversing the element tag body in jQuery advanced development. This article is shared from Huawei cloud community《There are four ways to implement “for loop” with jQuery framework!》Original author: grey ape. Today, let’s continue to share several common methods for traversing the element tag body in jQuery advanced development. Let’s explain […]

  • Tips! Exploration on the function of extracting picture theme color from CSS

    Time:2021-8-27

    This article will introduce a small skill of using CSS to obtain the theme color of pictures. Let’s see~ background The reason is that a classmate in the wechat technology group asked, what is the way to obtain the main color of the picture? There is a picture to get his main tone: The obtained […]

  • Implicit startup of activity in Android

    Time:2021-8-16

    PS: This article is a reprint of the article. You can get the source code by reading the original text. There is a link to the original text at the end of the article In Android development, there are two ways to start an activity: display startup and implicit startup. Display startup is to specify […]