
上QQ阅读APP看书,第一时间看更新
Showing text dynamically in HTML
We have implemented the basic game mechanics in the previous sections. Our Ping Pong game is missing a scoring board that shows both players' scores. We discussed how to use jQuery to modify the CSS styles of the selected elements. Can we also alter the content of the selected elements with jQuery? Yes, we can.