Tag:object

  • Data type of JavaScript and its detection

    Time:2021-10-27

    catalogue 1、 How many types of values does JavaScript have? 2、 Basic data type 1. The value is immutable 2. Store in stack area 3. Comparison of values 3、 Reference data type 1. The value is variable 2. Save in stack memory and heap memory at the same time 3. Comparison is the comparison of […]

  • Afnetworking request XML

    Time:2021-10-27

    preface: HTTP protocol is the most common way for server to communicate data with client. Generally speaking, the data format is JSON and XML. JSON format can be parsed. How to parse XML?——This article is based on afnetworking version 3.2.1 reference material: https://stackoverflow.com/que…https://stackoverflow.com/que…Focus Generally speaking, we instantiate an HTTP requestAFHTTPSessionManagerObject and set some properties: manager […]

  • Thread synchronization technology summary

    Time:2021-10-27

    Note: sort out some synchronization technologies for future review. At present, the technology is still learning, and the new knowledge of synchronization will be added to this article. Single machine multithreading: synchronized1. Interpretation: (1) JVM level synchronization technology, bytecode implementation. When there is a problem in code execution (such as throwing an exception), the JVM […]

  • An analysis of CPU burst height of. Net game station program

    Time:2021-10-27

    1: Background 1. Tell a story Last month, an old friend came to me and said that the CPU of his site would suddenly explode at night peak, and sent two dump files, as shown in the following figure: It is also the classic CPU explosion problem. So far, I still have some experience to […]

  • Use of asp.net core middleware (II): use of dependency injection

    Time:2021-10-26

    Write in front In the last article, you have learned about the use of. Net core middleware:Use of ASP. Net core middleware (I): building a static file server / accessing specified files, Many core objects in the. Net core framework are provided through dependency injection. What is dependency injection? This is also an old question. […]

  • Mybatis study notes

    Time:2021-10-26

    1. HelloWorld Import mybatis <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3.2</version> </dependency> 1.1 profile method Building sqlsessionfactory from XML <?xml version=”1.0″ encoding=”UTF-8″ ?> <!DOCTYPE configuration PUBLIC “-//mybatis.org//DTD Config 3.0//EN” “http://mybatis.org/dtd/mybatis-3-config.dtd”> <configuration> <environments default=”development”> <environment id=”development”> <transactionManager type=”JDBC”/> <dataSource type=”POOLED”> <property name=”driver” value=”com.mysql.jdbc.Driver”/> <property name=”url” value=”jdbc:mysql://”/> <property name=”username” value=”root”/> <property name=”password” value=”123456″/> </dataSource> </environment> </environments> <mappers> <mapper resource=”mapper/employee-mapper.xml”/> </mappers> […]

  • H5API

    Time:2021-10-26

    H5API New HTML5 features Tag: NAV article footer header aside New feature of the form: the value of input type is date time week email number Form attribute form Formaction from method required readonly disabled Form control label: progress meter datalist 1. H5api (JS part in HTML5) Before the advent of HTML5, to display video, […]

  • Summary of ES6 knowledge points

    Time:2021-10-25

    1. Let and block level scope for(let i =0;i<3;i++){ let i = “foo”; console.log(i) } Printout yesIt is equivalent to let i = 0; if (i < 3) { let i = “foo”; console.log(i); } i++; if (i < 3) { let i = “foo”; console.log(i); } i++; if (i < 3) { let i […]

  • contentEditable

    Time:2021-10-25

    function getDivContent(wrapper){ var textareaText = ”; for (var i = 0; i < wrapper.childNodes.length; i++) { if (wrapper.childNodes[i].nodeName !== ‘#text’) { if (wrapper.childNodes[i].innerHTML == ”) { textareaText += wrapper.childNodes[i].innerHTML } else { textareaText += wrapper.childNodes[i].innerText.replace(/\n$/,”) + ((i == wrapper.childNodes.length – 1|| wrapper.childNodes[i].innerText==’\n’) ? ” : ”) } } else { textareaText += wrapper.childNodes[i].nodeValue + ((i […]

  • 186 key words and functions that must be mastered in learning programming (py form processing version)

    Time:2021-10-25

    Indexes english chinese explain effect 1 abstract class abstract class Abstract classes cannot create objects. They are mainly used to create subclasses. Abstract classes in Java are defined using the abstract modifier. 2 abstract data type ADT Abstract data type Abstract classes cannot create objects. They are mainly used to create subclasses. Abstract classes in […]

  • Thoughts on the implementation of canvas coding

    Time:2021-10-25

    Basic introduction difficulty Multi graphics management generate storage Class classification Unique identification Check ID Zindex stack event click double-click Right click Drag roll animation requestAnimationFrame Minute hand rendering Multi object motion Motion curve strategy mode Object collision isPointInPath isPointInStroke Mathematical pickup performance optimization Framing rendering Split screen rendering multiple coincident canvas Reasonable context assignment operation […]

  • Golang reflection

    Time:2021-10-24

    reflex How to dynamically obtain the type or value information of an object? Passing is reflection Reflection refers to the ability of a program to access, detect and modify its own state or behavior during runtime. The simple understanding is to dynamically obtain what the object has (fields), what it can do (Methods), and even […]