How to modify th in JavaScript: 1. Create an HTML sample file; 2. Add a script tag; 3. Pass "$(document).read(function(){$('th').html( '...')})" method can modify the content of th.
The operating environment of this article: Windows 7 system, javascript version 1.8.5, DELL G3 computer
How to modify th in javascript?
For example:
js gets the th object and changes its content
如:
我是内容 |
---|
The method is as follows:
Recommended learning: "javascript video tutorial"
The above is the detailed content of How to modify th in javascript. For more information, please follow other related articles on the PHP Chinese website!