Invitation:
1. the pop-up invitation form is in the parent form (but the parent form must notify the child form, the records currently being operated)
2. when processing a subform, you must first obtain the records being operated and send a request. When the system returns, it tells the parent form that the processing has been completed and the processing result.
All operations are performed by the child form. How does the child form pop up its own definition for the parent form,
After the subform is submitted, you can hide yourself and define how the parent form handles the results !!! This Chen cannot do it ~~
In the new project recently developed with angularjs and bootstrap, considering the actual requirements above, we will summarize:
When a part of modules need to be reused, there is an opportunity for reconstruction. Generally, the first solution to this problem is to extract some functions from one module and call another module (there are too many problems with this programming method ). The best practice is to add the third module, which is referenced by the first two modules. In this way, the logical separation and independent maintenance are implemented, and the "open-closed" (for extension development and modification) programming rules are also followed.
I think of programming for the first time (reading is always useful, although you may not know when it will take effect)