Tag:enumeration

  • Asp.net core wechat payment (3) [query order apiv3]

    Time:2021-6-12

    Official references   Order inquiry Theory and Practice The government provides two ways to query orders, one is based on the order number generated by the merchants themselves, and the other is based on the order number generated by wechat. And I use the first way. Call wechat paymentOrder inquiry, need to generate signature, according to […]

  • Objective-C Tips

    Time:2021-6-12

    Notes & suggested usage Bool is actually an 8-bit character type. If an integer value greater than 1 byte is assigned to bool, only the status character will be used as the bool value. In the header file, other header files should be introduced as little as possible, and [email protected], or use the class protocol. […]

  • C + + learning notes — variables and basic data types

    Time:2021-5-14

    The meaning of variables   In elementary mathematics, variables are alphabetic characters representing numbers, which are arbitrary and unknown. It can solve many problems in a single calculation by algebraic calculation of variables as explicit numbers.  Similarly, in computer science, variables are names (usually alphabetic characters or words) that represent values represented in computer memory.  […]

  • Code practice of the rust programming language (Part 1 basic part)

    Time:2021-5-5

    A series of articles: Code practice of the rust programming language (Part 1 basic part) Code practice of the rust programming language (Part 2 advanced part) Code exercise of the rust programming language (Part 3 simple web server) My relationship with rust started when I found such a modern functional system programming language for system […]

  • Object. Assign () & object spread operator

    Time:2021-5-3

    1、 Definition of both 1.Object.assign()The: object. Assign() method is used to copy the values of all enumerable properties from one or more sources to the target object. It will return the target object. 2.Spread syntax,The array expression or string can be expanded at the syntax level during function call / array construction; You can also […]

  • Grpc in asp.net core 3. X — an example of protocol buffer (2) go language

    Time:2021-5-1

    First article (about half a year ago) https://www.cnblogs.com/cgzl/p/11246324.html Grpc in asp.net core 3. X — an example of protocol buffer (2) go language Go on to the last article.   Write to JSON First, write a func: Here, we use the marshaler struct in jsonpb, which has a method called marshaltostring, which can convert proto. […]

  • Six ultra simple and practical features of newtonsoft are worth a try [Part 2]

    Time:2021-4-25

    1: Tell a story According to the feedback from the garden, the six features introduced in the previous article have a good effect. This article will bring another six features to enjoy with you. 2: Characteristic analysis 1. Parsing JSON like weakly typed languages As we all know, there are many weakly typed languages, such […]

  • Mongoose data query or, and, where usage

    Time:2021-4-21

    or by$orThe condition specifies the parameters; //member = [“zhangsan”, “lisi”, “wangwu”]; let filter = { $or: [ {docKey: “public”}, {owner: “zhangsan”}, {member: “lisi”} ] } db.getCollection(‘docs’).find(filter); Data filtering or yes or query If one of the following conditions is met, the relevant data can be found If the database parameter is an array, it will […]

  • The use and superiority of enumeration type in C language

    Time:2021-4-18

    Enumeration type(enumerated type)ByNamed value(named value)A set ofdata type(data type)。 In ANSI C, enumeration is a list of integer values of a constant, which is usually used to assign a specific name to an integer constant to make the program more efficientreadableAndEasy to maintain(debug) and provide additionalType checkThere is a great opportunity. And it’s also for#defineAn […]

  • Practice analysis of rust built-in trait: partialeq and EQ

    Time:2021-4-14

    Abstract:Rust uses traits in many places, from simple operator overloading to subtle features like send and sync. This article is shared from Huawei cloud community《Analysis of rust built-in trait: partialeq and EQ》Author: debugzhang Rust uses traits in many places, from simple operator overloading to subtle features like send and sync. Some traits can be automatically […]

  • Java basic syntax: package mechanism

    Time:2021-4-14

    To better organize classes, Java providesPackage mechanism。 This mechanism is designed toIt can prevent naming conflict, access control, search and locate classes, interfaces, enumerations and annotations。 1、 Function Organize similar or related classes or interfaces in the same packageTo facilitate the search and use of the class. Just like the folder, the package is also […]

  • Some incompatible little changes in vue3

    Time:2021-4-13

    Some incompatible little changes in vue3 Changes in lifecycle option names Destroyed was renamed unmounted Beforedestroy was renamed beforeunmount Access this in the default function of prop Factory functions that generate the default value of prop can no longer access this // vue3 //Pass the original prop received by the component as a parameter to […]