Tag:object

  • Simply sort @ requestparam and @ requestbody

    Time:2020-7-13

    The front-end transmits parameters to the back-end, and how the back-end receives them will be thought ofspringNotes for Before that, I used it all the timeRequestParam(“userName”) String userName It’s not very useful to be reasonableRequestParam String userName It’s time to see the difference between the two @RequestParam @Requestbody (received as JSON data) If you don’t […]

  • Webpack modular implementation & dynamic module loading principle (8K + long text!! Read after collection)

    Time:2020-7-13

    Initial address: https://mp.weixin.qq.com/s/_ r… Title Party: in order to better explain, the code accounts for more words, do not worry~ What can you learn from this article:Webpack’s support for modular syntax、Link execution of modules after packaging、Processing flow of dynamic loading module, as well as many knowledge points that may be involved, waiting for you to […]

  • Complete implementation of a promise with class writing method

    Time:2020-7-11

    1. Preface This paper analyzes the understanding of promise features and realizes all functions of promise. Without reference to the original promise writing method, I completed and described it step by step according to the idea. Each building module is composed of: 1. Description of promise features; 2. Complete idea of realizing features (analysis wave); […]

  • IOS subtotal (2)

    Time:2020-7-11

    Tips: due to the limited level, if you have any questions or mistakes, please feel free to put forward and discuss them. I will reply as soon as possible. Thank you very muchContent reference: https://casatwy.com/tiao-chu-… The content of the blog is about IOS architecture; I recommend to read it in depth Problem: when others extend […]

  • Usage scenarios and precautions of JSON

    Time:2020-7-10

    In the last part, we explained the birth of JSON because XML is integrated into HTML, and the implementation details of each browser are differentDouglas Crockford(Douglas Crockford) andChip Morningstar (chip Morningstar) together extracted a subset from JS data type as a new data exchange format. Because mainstream browsers use common JavaScript engine components, there is […]

  • Codable: implement JSON in swift like JS

    Time:2020-7-10

    Codable: implement JSON in swift like JS Official document on codable implementation: https://developer.apple.com/documentation/foundation/archives_ and_ serialization/encoding_ and_ decoding_ custom_ types imagejsThe same,iOS 11After that,swiftIt can also be used convenientlyjsonIt’s time to pass the data. To usejson, the class you operate on needs to be implementedCodableInterfaceFoundationAll classes in have been implementedCadableSo if you don’t have some custom […]

  • Ten Python interview question traps to see if you’re going to hit it

    Time:2020-7-10

    The peak of job hopping is from March to April every year. Whether it’s a job application for Python web development, crawler engineer, data analysis, or automatic operation and maintenance, it involves some basic knowledge! I selected some basic interview questions of Python to see if you can answer them, and maybe the interviewees can […]

  • WPF: (3) visual layer example

    Time:2020-7-9

    Source project address: https://github.com/Microsoft/…The following is the conversion of the sample into a brief description, and gives the actual operation effect and key code: CompositionTarget PS: refresh rate = total count / total time seconds public MainWindow() { InitializeComponent(); // Add an event handler to update canvas background color just before it is rendered. System.Windows.Media.CompositionTarget.Rendering […]

  • Promise first experience

    Time:2020-7-9

    PromiseWhat is it? JSIt is to operate the properties and methods of an object. For an object, we can start with its properties and methods directlyconsole.dir (object)Print out From the above printed properties and methods, you can seePromiseIs a constructor that has its own privateall,reject,resolve,receThere are also methods on the prototype that belong to instance […]

  • Detailed introduction of front end modularization (ESM & commonjs)

    Time:2020-7-9

    Initial address: https://mp.weixin.qq.com/s/Be…   “Use the most concise way to grasp the core knowledge points to help you read ES6 quickly.” key word:ESModule、CommonJs Series of articles: Intensive Reading of ES6 (2) The previous article involves: class instantiation and inheritance The text begins here~ preface Before starting the text, I will add some basic knowledge Q1:JS […]

  • Redux first experience

    Time:2020-7-9

    Redux is a unified state management mechanism for the project. The communication between parent and child components is a method of passing props property value and calling back the parent component in advance. The whole state can only be from top to bottom, without the ability of backtracking. Redux centralizes all the States to the […]

  • Vue project commonly used method encapsulation, continuous update…

    Time:2020-7-9

    It can be used directly in Vue project 1. Common tools untils.js in /* *Whether the qualified mobile phone number is verified *True means qualified */ export function isPhone(phoneStr){ let myreg = /^[1][3,4,5,7,8,9][0-9]{9}$/; if (!myreg.test(phoneStr)) { return false; } else { return true; } } /* *Verify whether the ID card number is qualified *True […]