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...
I haven t used websocket much before. This time the supplier decided to use this. Here is the client. I checked some information. It seems that there are two ways for websocket to disconnect. One is that the client sends a request to the server, and th...
PHP business interface, you need to write a detection script. Executing the script in the monitoring system can self-check, but the parameters of the interface are not fixed. How to deal with this generally? for example, the interface of an order, the ID...
for example, arr1 = [2 br, 2, 2, 5, 7]; split according to the same, want to get arr2 = [2, 2, 2, 5], [6, 6, 6, 6, 6]; ...
just transferred from thinkphp5 to laravel. There are some problems. in the past, when thinkphp did projects, the front-end package management used bower, to put directly into the public directory, and script src directly introduced when references we...
when looking at eventlet s WSGI server: http: www.cnblogs.com Securi. to start a wsgi server, simply create a socket and use it to call eventlet.wsgi.server (). excuse me, can eventlet.wsgi be used as a production server? Do I still need to add uw...