Tag:attribute

  • Controlling HTML5 video in native development

    Time:2021-3-6

    preface Some people may ask, in today’s era when all kinds of front-end frameworks and development tools are rampant, can native development still be used? As a front-end lecturer for 18 years, I want to tell you the advantages of learning native development: Native development helps students understand front-end knowledge in principle and learn it […]

  • Linux uses CP to copy files or directories

    Time:2021-3-6

    usage method: $ cp –help Usage: CP [option]… Source file target file  Or: CP [option]… Source file… Directory Copy the source file to the target file, or copy multiple source files to the target directory. The parameters that long options must use are also required for short options. -A is equivalent to – PDR -D […]

  • Combine table and calendar of elementui to make a price calendar

    Time:2021-3-5

    In the project, we need to make a price calendar to display and modify the date and price. Let’s take a look at the final effect first, and then use the table and calendar of elementui to realize it. Let’s take a look at the main code (the code only retains the main code and […]

  • Samesite property of cookie

    Time:2021-3-5

    The samesite property of cookie is used to restrict the third-party cookie, so as to reduce the security risk。 It can set three values: Strict Lax None 1.Strict Strict is the most strict,No third-party cookies are allowed. Cookies will not be sent under any circumstances when cross sites. In other words,Only if the URL of […]

  • Using Maven profile and filtering to package various environments

    Time:2021-3-4

    Each project will have multiple running environments (development, testing, formal, etc.) and different environment configurations (e.g jdbc.url )With the convenience of Jenkins and automatic deployment, we can separate the configuration files of different environments, and replace the packaged files with the configuration files of corresponding environments after packaging. In fact, Maven has provided us with […]

  • Java knowledge points

    Time:2021-3-4

    1. Java common classes java.lang.Object : all classes directly or indirectly inherit from the parent class. Java thinks that all objects have some basic common content, which can be extracted upward continuously, and finally extracted into a top-level class (object). The class defines the functions that all objects havejava.lang.String : in Java, string class is […]

  • The solution of native PAGE compatible with IE9

    Time:2021-3-4

    preface Recently, I received a client’s native page. Customers require that the page must be compatible with IE9 and above browsers, and that the compatible mode of 360 browser can be accessed normally. 360 browser can force the speed mode through code, which is easier to solve. However, to be compatible with IE9, many CSS3 […]

  • Implementation of textbox place holder prompt in Windows Form

    Time:2021-3-3

    In WinForm program, there are many ways to implement textbox text input box placeholder, the most common way is to send EM based on Windows API SendMessage function_ Setceebanner message, or through the focus event of textbox. Implementation of SendMessage function Create a zhmtextbox input box control that inherits textbox, add a placeholder property, and […]

  • Using mutex to synchronize multiple processes

    Time:2021-3-3

    The function of the following program is to create a piece of shared memory, so that both the parent process and the child process can write data to it. However, it is required that another process can start to write after the parent process or the child process has finished writing, and all of them […]

  • React rendering mechanism

    Time:2021-3-3

    Refer to react official documents https://www.jianshu.com/p/8dc… JSX JSX is a syntax extension of JavaScript, which embeds JavaScript syntax into HTML template. Because react thinks that component rendering logic is inherently coupled with UI view, and JSX can well describe UI and should present the essential form of interaction, react suggests JSX syntax. JSX can fully […]

  • Simps / mqtt v1.1.1 release supports most of the properties in mqtt5

    Time:2021-3-3

    Many properties are added in mqtt 5.0 protocol. Different message types have different attributes. There are 27 attributes The last field in the variable header of connect, connack, publish, puback, pubrec, pubrel, pubcomp, subscribe, subback, unsubscribe, unsubback, disconnect and auth packets is a set of attributes. In the connect packet, there is also an optional […]

  • Front end optimization (webpack, JS, HTML)

    Time:2021-3-3

    HTTP optimization Gzip compression Compression and combination of resources Gzip coding on HTTP protocol is a technology used to improve the performance of web applications. Web server and client (browser) must support gzip together. The browser requests the URL and sets the property accept in the request header- encoding:gzip . It indicates that the browser […]