Tag:boundary

  • Modeling elements (2)

    Time:2020-3-27

    This chapter continues with modeling elements https://blog.csdn.net/bit_kaki/article/details/78471760 1: boundary Every object has a boundary, through which the outside world can only recognize and deal with objects. We get to know things through borders. The boundary determines the perspective, resulting in inconsistent description of the same transaction;     Boundary determines the level of abstraction: top-down, […]

  • task scheduler

    Time:2020-2-29

    export default (task, n) => { //Represents the final queue execution result let q = ” //Store categories let Q = {} task.forEach(item => { if (Q[item]) { Q[item]++ } else { Q[item] = 1 } }) //Tip: let’s use 1 as a circular condition while (1) { //Task list let keys = Object.keys(Q) if […]

  • (77) C × WinForm custom control sampling control

    Time:2020-1-17

    Official website http://www.hzhcontrols.com premise It’s been 7 or 8 years since I started, I always want to make a set of beautiful custom controls, so I have this series of articles. GitHub:https://github.com/kwwwvagaa/NetWinformControl Code cloud: https://gitee.com/kwwwvagaa/net/winform/custom/control.git If you think it’s OK, please click star to support it Welcome to discuss: Penguins 568015492 Here we are. Order […]

  • Leetcode weekly match for babies to understand – 170 – 2

    Time:2020-1-14

    1310. Exclusive or query of subarray Hi, everyone. I’m a pig. Welcome to the “baby can understand” series of leetcode weekly question solution. This is question 2 of issue 170, and also question 1310 in the list of questions – “sub array exclusive or query” Title Description There is a positive integer arrayarr, now I […]

  • Using ES6 to masturbate a snake

    Time:2020-1-2

    Preface Using ES6 to write small games such as Tetris has become an old thing;But it is necessary for us as beginners to practice;The main reason is that I wrote one by chance, and there are no other deeper factors;This project is written with ES6 and object-oriented; CELL model Save the coordinates and class of […]

  • JQuery obtains summary of various width heights and page width heights of elements

    Time:2019-12-22

    window.onload=function(){Var a = $(“ාdiv”). Width(), / / width() returns the width and height of the element, excluding padding / border / marginB = $(“ාdiv”). Innerwidth(), / / innerwidth() returns the width and height of the element + paddingC = $(“#div”). Outerwidth(), / / outerwidth() returns the width and height of the element + padding + […]