Monitor those things

Development tools and key technologies: Visual Studio
Author: Xiaoguang Bin
wrote Time: May 31, 2019

I am writing this project which, basically there is a lot of need to use the table to listen to another in order to obtain a data table, then this event is to monitor the project which introduced layui plugin comes, we just need the right application on the line, the first plug-in method to monitor events we write, then click on the data to obtain the line, there's something basically good package, we need to write only replace some of them, such as the need click for which form of data that can select a checkbox or radio button, click on the line so that you listen to the data, get to the selected data line after reloaded at the data from another table
Here Insert Picture Description
Here Insert Picture Description
after the above is to obtain data to the selected row controller method to reload the form, as to the contents of the method which is even table query twenty-three table, not elaborate, the following effect is achieved after the function
Here Insert Picture Description
Here Insert Picture Description
from the effects of functional point of view, we can see that listen for events probably, and there are two different forms, and functions to be achieved is to click on the data table selected rows a, then B Select the check out line, which also includes data, my project is to click on the selected functions implemented a package of information, then check out the information in the corresponding food and wine package information, quantity, etc., where we check out the "incredibly delicious package "also contains the following three information related to food and wine, this is achieved by listening to the event function. Listen for events simply plug-in application, as long as careful a little change parameters of the change, that nothing, that is, the entire project runs through this basic function, so I simply say what I believe we all might need to use this listener event.
Which we need to take note of is the name of the table, the name of the method, as well as the need to obtain foreign key id, pass parameters to get the data there with the same controller, because not pay attention to these small issues often leads to not get data path 404 or the error message as well as the server 500 error.
Here Insert Picture Description
Generally, we are 404 reported errors or server errors when submitting the request, and finally find out the path did not give either right, or did not pass parameters right, we need to take note! ! !

Guess you like

Origin blog.csdn.net/qq_44505797/article/details/91043865