Click on the event, switch between different content depending on the realization of the subscript

 background:

  Two tables, according to the table on the left click event

  Form on the right to switch display content

 

 

1. binding events, access to the subscript of the current row of the table Click

 

 2. Definition 4 array, the default is an empty array structure

 

3. When a component is loaded, the first array is assigned to a table

 

4. Define the event contents, implemented in accordance with the current standard handover row corresponding to the content

 

Guess you like

Origin www.cnblogs.com/wuhefeng/p/11316685.html