上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 99 下一页
摘要: Navigator即浏览器对象,提供浏览器相关的信息 <script type="text/javascript"> document.write("<p>浏览器产品名称:"); document.write(navigator.appName + "</p>"); document.write(" 阅读全文
posted @ 2020-07-24 08:47 Jasper2003 阅读(97) 评论(0) 推荐(0)
摘要: BOM即 浏览器对象模型(Browser Object Model)浏览器对象包括Window(窗口)Navigator(浏览器)Screen (客户端屏幕)History(访问历史)Location(浏览器地址)本章节从 Window(窗口)开始讲起 示例 1 : 获取文档显示区域的高度和宽度 示 阅读全文
posted @ 2020-07-24 08:37 Jasper2003 阅读(139) 评论(0) 推荐(0)
摘要: 在JavaScript中可以自定义对象,添加新的属性,添加新的方法 示例 1 : 通过new Object创建对象 通过new Object()创建一个对象 <script> var hero = new Object(); hero.name = "盖伦"; //定义一个属性name,并且赋值 h 阅读全文
posted @ 2020-07-24 08:08 Jasper2003 阅读(142) 评论(0) 推荐(0)
摘要: Math是JavaScript的工具对象,用于常见的数学运算 步骤 1 : 自然对数和圆周率 属性E PI,分别表示自然对数和圆周率PI <script> document.write(Math.E); document.write("<br>"); document.write(Math.PI); 阅读全文
posted @ 2020-07-24 08:01 Jasper2003 阅读(115) 评论(0) 推荐(0)
摘要: STEP 1: Reading Read Chapter 15 in your textbook. . . STEP 2: Globalization of Religion Look through these slides. There is no sound but they will hel 阅读全文
posted @ 2020-07-24 06:22 Jasper2003 阅读(322) 评论(0) 推荐(0)
摘要: Commerce in People: The Atlantic Slave Trade Of all the commercial ties that linked the early modern world into a global network of exchange, none had 阅读全文
posted @ 2020-07-23 05:15 Jasper2003 阅读(555) 评论(0) 推荐(0)
摘要: PART 1: Aztec and Inca Empires / African empires 800-1500 In Part 1 today, we are reading about the Bantu migrations and the spread of language in Afr 阅读全文
posted @ 2020-07-22 16:22 Jasper2003 阅读(495) 评论(0) 推荐(0)
摘要: JavaScript使用Date对象表示日期 示例 1 : 创建日期对象 通过new Date创建一个日期对象,这个对象就表示当前日期(现在) <script> var d = new Date(); document.write('new Date():'+d); </script> 示例 2 : 阅读全文
posted @ 2020-07-22 16:19 Jasper2003 阅读(191) 评论(0) 推荐(0)
摘要: 示例 10 : 对数组的内容进行反转 方法 reverse,对数组的内容进行反转 <script> function p(s){ document.write(s); document.write("<br>"); } var x = new Array(3,1,4,1,5,9,2,6); p('数 阅读全文
posted @ 2020-07-22 09:58 Jasper2003 阅读(126) 评论(0) 推荐(0)
摘要: 示例 7 : 分别在最开始的位置插入数据和获取数据(获取后删除) 方法 unshift shift ,分别在最开始的位置插入数据和获取数据(获取后删除) <script> function p(s){ document.write(s); document.write("<br>"); } var 阅读全文
posted @ 2020-07-22 09:49 Jasper2003 阅读(193) 评论(0) 推荐(0)
上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 99 下一页