Summary AJAX related JS code snippet and browser model

xiaoxiao2021-03-17  193

In .NET development, make full use of the free control is a good thing, but if you cannot modify the control to achieve your own needs, you should use JS Dafa, premise the method of studying the methods of the various objects of the browser model. Especially familiar with CSS HTML will be very cool. The JS language itself is not high.

1. Dynamically remove the contents of Table inside, do not need to write too much code, one line: tb.removenode (true)

2. Dynamic increase line, in addition to the CreateElement method, can also be relatively short: