The method of packaging

Create a separate class to store and do a direct copy of the project after the past can be used, you can save a lot of time thinking:

    First written code, to a function, and put this code Cut all last pre-created class, which parameters need to be written, of course, if you clear logic, it can also directly call a good package. If you want to operate the page text boxes, drop-down box, and so on, parameter transfer is not a string type, but rather to create the page corresponding label. To give you a simple Liezi:

     The label is, when the encapsulation method must declare that the label,

 

 

When called, the name of the label transport the past like, you can use the value names, assignments and other operations

Guess you like

Origin blog.csdn.net/weixin_44588370/article/details/90613113