Tag:ellipsis

  • 20220602 Appendix – 2. Configuration Metadata

    Time:2022-6-14

    preface Document address Spring boot jar contains metadata files that provide details of all supported configuration properties. These files are intended for IDE developers to useapplication.propertiesandapplication.ymlProvides context help and code completion when a file is created. Most metadata files are compiled by processing all metadata files [email protected] items are automatically generated. However, it can be […]

  • 05 rxjava3 source code analysis

    Time:2022-6-12

    ReactiveXyesReactive Extensions, generally abbreviated as Rx, was originally an extension of LINQ. It was developed by a team led by Microsoft architect Erik Meijer and was open source in november2012. RX now supports almost all popular programming languages,RxJavayesReactiveXyesJavaLanguage support library. In short,RxJavaIt is a reactive programming library based on event flow processing using observer pattern […]

  • [database] query optimization sub connection optimization

    Time:2022-6-12

    Author: chirpyli Source:Hang Seng light cloud community There are a lot of logic optimization contents for sub queries. Let’s start withselect * from t1 where id in (select a from t2);This SQL statement analyzes the logic optimization process of PostgreSQL for child connections as an example. Before moving on, let’s distinguish between a sub connection […]

  • Full of WebView optimized dry goods, let your H5 realize the second opening experience.

    Time:2022-6-11

    What is the difference between WebView and native? Baidu app pictures are cited here to illustrate. 6asdasd40.jpg Baidu developers divided the whole process into four stages and counted the average time spent in each stage. It can be seen that it took 260 MS to initialize the component, and the average time to create the […]

  • Construction of fiber tree

    Time:2022-6-3

    Let’s start with a simple demo: import * as React from ‘react’; import * as ReactDOM from ‘react-dom’; class App extends React.Component { render() { return ( This is the title. This is the first paragraph. This is the second paragraph. ); } } ReactDOM.render(, document.getElementById(‘root’)); The call stack for the first rendering is shown […]

  • How to dynamically display the expand button under a text introduction?

    Time:2022-6-3

    Keywords:Scroll height of rich text get scrollheight and offsetHeight height Product requirements1. the first three lines of the text introduction are displayed, and the ellipsis is at the back2. when the first three lines are exceeded, the ‘expand button’ will be displayed; otherwise, the ‘expand button’ will not be displayed analysis1. the text introduction is […]

  • Swift function (method)

    Time:2022-5-26

    1、 Definition of function be careful ⚠️: By default, the function parameter is let, and the value of the parameter cannot be changedForm of function Function parameter name (func) – > (return value){ Return return value } Function parameters are optional, and the number of parameters can be one or moreThe return value of the […]

  • Policy configuration of accessing bucket with Minio SDK

    Time:2022-5-23

    Configure users to access buckets Minio is a high-performance object storage service, which is developed based on golang and can be deployed locally.It is very convenient to use it to manage the uploaded and downloaded files in your system. ​ When accessing Minio services through SDK, you usually create a service account first, and then […]

  • Introduction to Linux basic commands 8: text analysis awk

    Time:2022-5-19

    awkIt is a pattern scanning and processing language. It is a very powerful tool for data analysis and processing. awk [options] ‘pattern {action}’ file… awkThe working process is as follows: read the input by line (standard input or file), for compliance modepatternLine, executionaction。 WhenpatternIf omitted, it means to match any string; WhenactionOmission indicates execution'{print}’; They […]

  • CSS realizes two lines of text display

    Time:2022-5-14

    .content { text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; display: -moz-box; -moz-line-clamp: 2; -moz-box-orient: vertical; overflow-wrap: break-word; word-break: break-all; white-space: normal; overflow: hidden; } Several attributes to be explained text-overflow CSSProperty determines how to signal the user for an undisplayed overflow It can be cut to display an ellipsis (‘…’) or a custom string […]

  • Spring source code analysis II: context component (webapplicationcontext)

    Time:2022-5-14

    Spring source code analysis II: context component (webapplicationcontext) The last article analyzedDispatcherServletAndContextLoaderListenerThese two classes resolve the process of application initialization and request processing, but some components need to be resolved: ConfigurableWebApplicationContext.refreshRefresh context ApplicationContext.getBeanGet bean from context DispatcherServlet.propertiesPolicy processing defined in the file ContextLoader.propertiesPolicy processing defined in the file View.renderView rendering Let’s take a look at […]

  • Android event distribution mechanism — bring it to you

    Time:2022-5-13

    There are a lot of information about Android event distribution mechanism on the Internet. I have seen it many times, but I forget it every time after a period of time. I feel that my research is not deep enough. This time, I decided to comb through the knowledge of Android event distribution mechanism according […]