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 used a UITableView, in the project. This UITableView has three cell. There is a need to refresh the first cell, which will change the height of the cell. While changing the height of the first cell, the second and third cell will move, and this moveme...
just a month after learning Mini Program, I want to do a test of Mini Program, 1, let the user enter the name; 2, and then convert the name to a numerical value; 3, set several arrays and find the corresponding array according to the converted values...
the recent unit test using vuecli karma+mocha+chai, test is that $ref will report an error and cannot continue. there is no problem in development and production, and the unit test begins to report an error ....
the parent can find the direct point of the subset, but the subset can find the parent. How to operate let arrn=[ { "MENU_URL": "dashboard", "MENU_ID": "104a580029c54e139210b7e87dca6d89...
Custom navigation bar: app.json: "navigationStyle": "custom" : <!--wxml--> <view class= header > <view class= flex > < view> < view> <!--wxss--> .header{ position: fixed; ...