Front-end interface addition and modification

Front-end interface addition and modification
First of all, of course, the interface document is needed. If you ask me how to do it without the interface document, it will be fine.
Let me talk about the increase first. The increase is very simple. Find the trigger event corresponding to the interface or the location of the original interface. It is recommended to directly find the trigger event corresponding to the interface. Anyway, I found it very difficult to find the original interface at first, and it is easy to find the wrong , Then basically the calf behind. So it’s better to find the trigger event. For example, if the interface is to click a button, then go to the console to find the component corresponding to this button. After finding the component in the project, check the trigger method of the button, press ctrl and the left button. You can jump directly to the corresponding method. Generally speaking, the jump method will correspond to the previous interface or something. Copy the original method, change the method name, and then change the interface in the copied method to the newly added interface.
The modification is almost the same. You can also directly change the original method (try not to). Adjust the parameters or something. This is the most troublesome. Look at it yourself. . .

Guess you like

Origin blog.csdn.net/weixin_43176019/article/details/108987928