in actual projects, customers often clap their heads and decide to add and delete some status fields. take a chestnut, for example, to publish an article, the initial status status field has only two, one is the "unpublished " status, and the other is ...
the code is as follows export class SHost_Room{ constructor(rooms){ } } let rooms = [...] let shRooms = new SHost_Room(rooms); I m not good at object-oriented, and I feel like I don t have a train of thought. ...
question: in some current projects, such as the first column of the first row of the table is fixed, the form radio and all selections are implemented by themselves using js (not considering using the framework for the time being). So how to effectively ...
Many people on use calculator examples to illustrate these two principles, but it seems that the difference is that OCP has an abstract class, while SRP does not inherit abstraction compared with SRP, OCP, the examples of 1.OCP are all independent of...
it is slow to install the software I changed the source of apt to Tsinghua, but software center is still very slow. I feel that the download is very slow. I don t know what good way to do it. ...
problem description as shown in the title, the data obtained at present is a multi-layer tree structure, and each layer has its own children,. How can you get the children of the last layer to deal with it, and carry out Filter to process the data? on...
recently tried to use rabbitmq, under node to manage using the npm package amqplib. now there is a question, that is, after I have created a queue for rabbitmq, I want to know how much content in the current queue has not been processed through amqpli...
<html> <head> < head> <body> <div id="app"> <img :src="imgsrc" > < div> < body> <script src="https: cdn.jsdelivr.net npm vue@2.5.16 dist vue.js">< script> <...
problem description Hexo theme development found that locals.posts locals.categories behaves like an array, and you can use methods such as map, sort, and so on. But it s not exactly an array, for example, you can t use for.of.. Iterate. got very ...