JS document对象简单用法完整示例 本文实例讲述了JS document对象简单用法.分享给大家供大家参考,具体如下: <html> <head> <title>js-document对象学习</title> <meta charset="UTF-8"/> <script type="text/javascript"> // 直接获取对象 function testGetElementById(){ //通过id获取对象
JS document对象简单用法完整示例 本文实例讲述了JS document对象简单用法.分享给大家供大家参考,具体如下: <html> <head> <title>js-document对象学习</title> <meta charset="UTF-8"/> <script type="text/javascript"> // 直接获取对象 function testGetElementById(){ //通过id获取对象