{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

实用掌中宝:JavaScript语法和对象速查手册

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

实用掌中宝:JavaScript语法和对象速查手册

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Editer Recommend

涵盖30个必须掌握的JavaScript对象,提供350个方法、属性和事件。
涵盖JavaScript大部分常用的语法和对象
使用典型示例讲解每个语法和对象的使用方法
详细介绍了每个对象的常见方法、属性和事件
方法和属性提供了功能和字母双重索引
《JavaScript语法和对象速查手册》主要内容:
JavaScript基础知识
JavaScri pt语法知识
JavaScript的内部函数
String字符串对象
Number数值对象
Date日期对象
Math对象
Array数组对象
其他JavaScript对象
Window窗口对象
Navigator浏览器对象
Screen屏幕对象
其他浏览器对象
Document文档对象
Form表单对象
Table表格对象
浏览器事件对象
其他常见DOM对象
ActiveX对象的应用
FileSystemObject文件处理对象
使用JavaScript操作数据库
Content Description

《JavaScript语法和对象速查手册》以全面的知识性及丰富的示例,指导读者学习JavaScript各个方面的技术。内容涵盖了JavaScript基础知识、函数和JavaScript对象、DOM对象以及ActiveX插件技术等各方面的知识。最后给出了《JavaScript语法和对象速查手册》所涉及方法与属性的索引,便于读者检索。
《JavaScript语法和对象速查手册》适合JavaScript初学者、JavaScript程序员以及其他Web应用程序工程技术人员阅读。
Catalogue

第1篇 JavaScript入门
第1章 认识JavaScript
1.1 JavaScript的作用
1.1.1 动态交互
1.1.2 绚丽页面
1.2 如何编写JavaScript代码
1.2.1 语句
1.2.2 语句块
1.2.3 注释
1.2.4 表达式
1.2.5 保留字
1.3 JavaScript的编写工具和调试工具
1.3.1 运行环境
1.3.2 编写工具
1.3.3 调试工具
1.4 JavaScript的代码位置
1.4.1 在HTML网页头中嵌入JavaScript代码
1.4.2 在HTML网页体中嵌入JavaScript代码
1.4.3 在HTML网页的元素事件中嵌入JavaScript代码

第2章 JavaScript语法基础
2.1 常量和变量
2.1.1 什么是变量和常量
2.1.2 变量的声明
2.1.3 变量的命名
2.2 数据类型
2.2.1 字符串类型
2.2.2 数值类型
2.2.3 布尔类型
2.2.4 null类型
2.2.5 undefined类型
2.3 运算符
2.3.1 算术运算符
2.3.2 逻辑运算符
2.3.3 位运算符
2.3.4 赋值运算符
2.3.5 其他运算符
2.3.6 运算符的优先级
2.4 选择结构
2.4.1 单一选择结构
2.4.2 二路选择结构
2.4.3 三元运算符
2.4.4 多路选择结构
2.5 循环结构
2.5.1 在循环的开头控制条件——while
2.5.2 在循环的末尾控制条件——do/while
2.5.3 通过循环遍历每个对象的属性——for/in
2.5.4 使用计数器控制循环——for
2.6 break和continue程序跳转语句

第3章 函数和对象
3.1 函数
3.1.1 什么是函数
3.1.2 内部函数
3.1.3 自定义函数
3.1.4 函数的参数arguments
3.2 认识JavaScript对象
3.2.1 什么是对象
3.2.2 JavaScript中对象的分类
3.2.3 本地对象
3.2.4 内置对象
3.2.5 宿主对象
3.2.6 关联数组的对象

第2篇 函数和JavaScript对象详解
第4章 JavaScript的内部函数
4.1 使用eval()函数执行JavaScript代码
4.2 使用parseInt()函数将字符串转换为数字
4.3 使用parseFloat()函数将字符串转换为数字
4.4 使用escape()函数对字符串进行编码
4.5 使用unescape()函数对字符串进行解码
4.6 使用isNaN()函数判断值是否为数字
4.7 使用isFinite()函数判断数字是否为无穷大或无穷小
4.8 使用encodeURI()函数进行URI的编码
4.9 使用decodeURI()函数进行URI的解码
4.10 使用encodeURIComponent()函数把字符串编码为URI组件
4.11 使用decodeURIComponent()函数解码URI组件

第5章 String字符串对象
5.1 认识String字符串对象
5.1.1 语法参数说明
5.1.2 String字符串对象的属性
5.1.3 String字符串对象的方法
5.2 详解String字符串对象的属性
5.2.1 length属性:返回指定字符串的长度
5.2.2 prototype属性:将新定义的属性或方法添加到
String对象中
5.2.3 constructor属性:指向对创建当前对象的引用
5.3 详解String字符串对象的方法
5.3.1 anchor()方法:为字符串添加HTML锚点标签
5.3.2 big()方法:为字符串添加HTML大字体标签
5.3.3 bold()方法:为字符串添加HTML的粗体标签
5.3.4 charAt()方法:返回字符串中指定位置处的字符
5.3.5 charCodeAt()方法:返回指定位置字符的Unicode编码
5.3.6 concat()方法:将字符串连接到当前字符串的末尾
5.3.7 fixed()方法:将字符串显示为打印机字体
5.3.8 fontcolor()方法:设置字符串的前景色
5.3.9 fontsize()方法:设置字符串的字体大小
5.3.10 fromCharCode()方法:根据指定的Unicode编码返回字符串
5.3.11 indexOf()方法:返回指定字符(串)第一次出现的位置
5.3.12 italics()方法:为字符串添加HTML的斜体标签
5.3.13 lastIndexOf()方法:返回指定字符(串)最后一次出现的位置
5.3.14 link()方法:为字符串添加超级链接
5.3.15 localeCompare()方法:比较两个字符串的大小
5.3.16 replace()方法:替换字符串中指定的内容
5.3.17 slice()方法:从字符串中提取子串
5.3.18 small()方法:为字符串添加小字体标签
5.3.19 split()方法:将字符串分割并存储到数组中
5.3.20 strike()方法:为字符串添加下划线标签
5.3.21 sub()方法:为字符串添加下标标签
5.3.22 substr()方法:返回字符串中的一个子串
5.3.23 substring()方法:从字符串中提取子串
5.3.24 sup()方法:为字符串添加上标标签
5.3.25 toLowerCase()方法:将字符串转化为小写格式
5.3.26 toUpperCase()方法:将字符串转化为大写格式
5.3.27 valueOf()方法:返回指定对象的原始值

第6章 Number数值对象
6.1 认识Number数值对象
6.1.1 语法参数说明
6.1.2 Number数值对象的属性
6.1.3 Number数值对象的方法
6.2 详解Number数值对象的属性
6.2.1 MAX_VALUE最大值属性
6.2.2 MIN_VALUE最小值属性
6.2.3 NaN非数字值属性
6.2.4 NEGATIVE_INFINITY负无穷大值属性
6.2.5 POSITIVE_INFINITY正无穷大值属性
6.3 详解Number数值对象的方法
6.3.1 toExponential()方法:返回以指数记数法表示的数字
6.3.2 toFixed()方法:四舍五入时指定小数位数
6.3.3 toLocaleString()方法:把Number对象转换为本地格式的字符串
6.3.4 toPrecision()方法:以指数记数法指定小数位
6.3.5 toString()方法:把Number对象转换为字符串

第7章 Date日期对象
7.1 认识Date日期对象
7.1.1 语法参数说明
7.1.2 Date日期对象的属性
7.1.3 Date日期对象的方法
7.2 详解Date日期对象的方法
7.2.1 getFullYear()方法:返回表示完整年份的数字
7.2.2 getMonth()方法:返回指定日期的月份
7.2.3 getDate()方法:返回指定月份中的日期
7.2.4 getDay()方法:返回日期所对应的周次
7.2.5 getHours()方法:以24小时制返回当前时间的小时值
7.2.6 getMinutes()方法:返回时间的分钟值
7.2.7 getSeconds()方法:返回时间的秒钟值
7.2.8 getTime()方法:返回距1970年1月1日午夜的时间差
7.2.9 getMilliseconds()方法:返回时间的毫秒值
7.2.10 getUTCDate()方法:返回UTC日期或时间值
7.2.11 setFullYear()方法:设置Date对象中的年份值
7.2.12 setMonth()方法:设置Date对象中的月份值
7.2.13 setDate()方法:设置Date对象中的日期值
7.2.14 setHours()方法:设置Date对象中的小时值
7.2.15 setMinutes()方法:设置Date对象中的分钟值
7.2.16 setSeconds()方法:设置Date对象中的秒钟值
7.2.17 setUTCDate()方法:以UTC日期对Date对象进行设置
7.2.18 getTimezoneOffset()方法:返回当地时间与UTC时间的差值
7.2.19 toDateString()方法:将Date对象中的日期转换为字符串格式
7.2.20 toUTCString()方法:返回一个以UTC时间表示的日期字符串
7.2.21 toGMTString()方法:返回一个以GMT时间表示的日期字符串
7.2.22 toLocaleString()方法:将日期对象转化为本地日期
7.2.23 toLocaleDateString()方法:返回日期字符串
7.2.24 toTimeString()方法:以字符串的形式返回时间
7.2.25 toLocaleTimeString()方法:转化为本地时间字符串
7.2.26 toString()方法:将日期对象转化为字符串信息
7.2.27 parse()方法:计算指定时间距1970年1月1日午夜的时间差

第8章 Math对象
8.1 认识Math对象
8.1.1 语法参数说明
8.1.2 Math对象的属性
8.1.3 Math对象的方法
8.2 详解Math对象的属性
8.2.1 E属性:返回自然对数的底
8.2.2 LN2属性:返回 2 的自然对数
8.2.3 LN10属性:返回10的自然对数
8.2.4 LOG2E属性:返回以2为底e(自然对数的底)的对数
8.2.5 LOG10E属性:返回以10为底e(自然对数的底)的对数
8.2.6 PI属性:返回π的值
8.2.7 SQRT1_2属性:返回0.5的平方根
8.2.8 SQRT2属性:返回2的平方根
8.3 详解Math对象的方法
8.3.1 abs()方法:返回数的绝对值
8.3.2 acos()方法:返回数的反余弦值
8.3.3 asin()方法:返回数的反正弦值
8.3.4 atan()方法:返回数的反正切值
8.3.5 atan2()方法:根据指定的坐标返回一个弧度值
8.3.6 ceil()方法:返回大于或等于指定参数的最小整数
8.3.7 cos()方法:计算数的余弦值
8.3.8 exp()方法:返回以e为基数的幂
8.3.9 floor()方法:返回小于或等于指定参数的最大整数
8.3.10 log()方法:返回数的自然对数
8.3.11 max()方法:返回两个或多个参数中的最大值
8.3.12 min()方法:返回两个或多个参数中的最小值
8.3.13 pow()方法:幂运算
8.3.14 random()方法:生成0到1之间的随机数
8.3.15 round()方法:取整运算
8.3.16 sin()方法:计算数的正弦值
8.3.17 sqrt()方法:平方根运算
8.3.18 tan()方法:计算数的正切值

第9章 Array数组对象
9.1 认识Array数组对象
9.1.1 语法参数说明
9.1.2 Array数组对象的属性
9.1.3 Array数组对象的方法
9.2 详解Array数组对象的属性
9.3 详解Array数组对象的方法
9.3.1 concat()方法:连接其他数组到当前数组末尾
9.3.2 join()方法:将数组元素连接为字符串
9.3.3 pop()方法:移除数组中最后一个元素
9.3.4 push()方法:将指定的数据添加到数组中
9.3.5 reverse()方法:反序排列数组中的元素
9.3.6 shift()方法:删除数组中的第一个元素
9.3.7 slice()方法:获取数组中的一部分数据
9.3.8 sort()方法:对数组中的元素进行排序
9.3.9 splice()方法:删除数组中部分数据
9.3.10 toString()方法:将数组全部数据转化为字符串
9.3.11 toLocaleString()方法:把数组转换为本地字符串
9.3.12 unshift()方法:在数组前面插入数据

第10章 其他JavaScript对象
10.1 Boolean对象
10.1.1 语法参数说明
10.1.2 Boolean对象的属性
10.1.3 Boolean对象的方法
10.1.4 Boolean对象的应用
10.2 RegExp对象
10.2.1 语法参数说明
10.2.2 RegExp对象的属性
10.2.3 RegExp对象的方法
10.2.4 RegExp对象的应用
10.3 Function对象
10.3.1 语法参数说明
10.3.2 Function对象的属性
10.3.3 Function对象的方法
10.3.4 Function对象的应用
10.4 Error对象
10.4.1 语法参数说明
10.4.2 Error对象的属性
10.4.3 Error对象的应用
10.5 ActiveXObject对象
10.5.1 语法参数说明
10.5.2 ActiveXObject对象的应用
10.6 Enumerator对象
10.6.1 语法参数说明
10.6.2 Enumerator对象的方法
10.6.3 Enumerator对象的应用

第3篇 浏览器对象详解
第11章 Window窗口对象
11.1 认识Window窗口对象
11.1.1 语法参数说明
11.1.2 Window窗口对象的属性
11.1.3 Window窗口对象的方法
11.2 详解Window窗口对象的属性
11.2.1 closed属性:关闭窗口
11.2.2 defaultStatus属性:返回窗口的默认状态
11.2.3 length属性:返回窗口中的框架数量
11.2.4 name属性:设置窗口的名称
11.2.5 opener属性:返回对打开当前窗口的窗口的引用
11.2.6 parent属性:返回父窗口
11.2.7 self属性:返回对当前窗口的引用
11.2.8 status属性:设置窗口状态栏的文本
11.2.9 screenLeft、screenTop属性:返回窗口的x、y坐标
11.2.10 top属性:返回最顶层的父辈窗口
11.3 详解Window窗口对象的方法
11.3.1 alert()方法:打开一个警告对话框
11.3.2 blur()方法:使窗口失去焦点
11.3.3 clearInterval()方法:取消setInterval()方法产生的作用效果
11.3.4 clearTimeout()方法:取消setTimeout()方法产生的作用效果
11.3.5 close()方法:关闭Windows窗口
11.3.6 confirm()方法:打开一个选择对话框
11.3.7 createPopup()方法:创建弹出窗口
11.3.8 focus()方法:使窗口获得焦点
11.3.9 moveBy()方法:通过指定偏移量来移动窗口
11.3.10 moveTo()方法:移动窗口到指定的坐标
11.3.11 open()方法:打开一个新的窗口
11.3.12 print()方法:打印窗口内容
11.3.13 prompt()方法:打开一个允许输入信息的对话框
11.3.14 resizeBy()方法:通过指定坐标偏移量来缩放窗口
11.3.15 resizeTo()方法:通过指定新数值来改变窗口的大小
11.3.16 scrollBy()方法:按给定的偏移量来滚动窗口中的内容
11.3.17 scrollTo()方法:滚动窗口中的内容到新的位置
11.3.18 setInterval()方法:指定每隔多长时间执行一次指定代码
11.3.19 setTimeout()方法:指定多长时间之后执行指定的代码
11.3.20 showModalDialog()方法:打开一个模式对话框
11.3.21 showModalessDialog()方法:打开一个非模式对话框

第12章 Navigator浏览器对象
12.1 认识Navigator浏览器对象
12.1.1 语法参数说明
12.1.2 Navigator浏览器对象的属性
12.1.3 Navigator浏览器对象的方法
12.2 详解Navigator浏览器对象的属性
12.2.1 appCodeName属性:返回浏览器的代码名
12.2.2 appMinorVersion属性:返回浏览器的次要版本
12.2.3 appName属性:返回浏览器的名称
12.2.4 appVersion属性:返回浏览器的平台和版本信息
12.2.5 userAgent属性:返回浏览器用于HTTP请求的用户代理头的值
12.2.6 browserLanguage属性:返回当前浏览器使用的语言
12.2.7 cookieEnabled属性:判断浏览器是否启用了cookie
12.2.8 cpuClass属性:返回浏览器系统的CPU等级
12.2.9 onLine属性:判断系统是否处于脱机模式
12.2.10 platform属性:声明了运行浏览器的操作系统和(或)硬件平台
12.2.11 systemLanguage属性:返回操作系统使用的默认语言
12.2.12 userLanguage属性:返回操作系统的自然语言设置
12.3 详解Navigator浏览器对象的方法
12.3.1 javaEnabled()方法:检测当前浏览器是否支持Java
12.3.2 taintEnabled()方法:检测当前浏览器是否启用了数据污点
12.4 Navigator浏览器对象的综合属性应用

第13章 Screen屏幕对象
13.1 认识Screen屏幕对象
13.1.1 语法参数说明
13.1.2 Screen屏幕对象的属性
13.2 详解Screen屏幕对象的属性
13.2.1 availHeight属性:显示屏幕的可用高度
13.2.2 availWidth属性:显示屏幕的可用宽度
13.2.3 bufferDepth属性:显示调色板的比特深度
13.2.4 colorDepth属性:显示缓冲器上调色板的比特深度
13.2.5 deviceXDPI属性:显示屏幕每英寸的水平点数
13.2.6 deviceYDPI属性:显示屏幕每英寸的垂直点数
13.2.7 fontSmoothingEnabled属性:判断用户是否启用了字体平滑
13.2.8 height属性:显示屏幕的高度
13.2.9 logicalXDPI属性:显示屏幕每英寸的水平方向的常规点数
13.2.10 logicalYDPI属性:显示屏幕每英寸的垂直方向的常规点数
13.2.11 updateInterval属性:显示屏幕的刷新率
13.2.12 width属性:显示屏幕的宽度
13.3 Screen屏幕对象的综合属性应用

第14章 其他浏览器对象
14.1 认识History对象
14.1.1 语法参数说明
14.1.2 History对象的属性
14.1.3 History对象的方法
14.1.4 length属性:返回浏览器历史列表中的URL数量
14.1.5 back()方法:返回到上一个URL地址
14.1.6 forward()方法:返回到下一个URL地址
14.1.7 go()方法:打开指定的页面
14.2 认识Location对象
14.2.1 语法参数说明
14.2.2 Location对象的属性
14.2.3 Location对象的方法
14.2.4 hash属性:返回从井号开始的URL
14.2.5 host属性:返回主机名和当前URL的端口号
14.2.6 hostname属性:返回当前URL的主机名
14.2.7 href属性:返回完整的URL
14.2.8 pathname属性:返回当前URL的路径部分
14.2.9 port属性:返回当前URL的端口号
14.2.10 protocol属性:返回当前URL的协议
14.2.11 search属性:返回从问号开始的URL查询部分
14.2.12 assign()方法:加载新的文档
14.2.13 reload()方法:重新加载当前文档
14.2.14 replace()方法:用新的文档替换当前文档

第4篇 DOM对象详解
第15章 Document文档对象
15.1 认识Document文档对象
15.1.1 语法参数说明
15.1.2 Document文档对象的属性
15.1.3 Document文档对象的方法
15.2 详解Document文档对象的属性
15.2.1 alinkColor、linkColor、vlinkColor属性:设置链接的颜色
15.2.2 bgColor属性:设置页面的背景色
15.2.3 body属性:获取页面的标签
15.2.4 cookie属性:获取或设置cookie值
15.2.5 charset、defaultCharset属性:设置文档的字符集
15.2.6 domain属性:返回当前文档的服务器域名
15.2.7 fgColor属性:设置页面的前景色
15.2.8 fileCreatedDate、fileModifiedDate、lastModified属性:获取文档创建和修改日期
15.2.9 fileSize属性:获取文档的大小
15.2.10 referrer属性:返回载入当前文档的文档的URL
15.2.11 title属性:返回当前文档的标题
15.2.12 URL属性:返回当前文档的URL
15.3 详解Document文档对象的方法
15.3.1 open()、close()方法:打开和关闭输出流
15.3.2 createElement()方法:创建HTML标签对象
15.3.3 getElementById()方法:返回带有指定id的对象集
15.3.4 getElementsByName()方法:返回带有指定名称的对象集
15.3.5 getElementsByTagName()方法:返回带有指定标签名的对象集
15.3.6 write()、writeln()方法:在文档中输出内容

第16章 Form表单对象
16.1 认识Form表单对象
16.1.1 语法参数说明
16.1.2 Form表单对象的属性
16.1.3 Form表单对象的方法
16.2 详解Form表单对象的属性
16.2.1 acceptCharset属性:设置服务器可接受的字符集
16.2.2 action属性:设置表单的action属性
16.2.3 enctype属性:设置表单用来编码内容的MIME类型
16.2.4 id属性:设置表单的id
16.2.5 length属性:返回表单中的元素数目
16.2.6 method属性:设置将数据发送到服务器的HTTP方法
16.2.7 name属性:设置表单的名称
16.2.8 target属性:设置目标网页的打开位置
16.3 详解Form表单对象的方法
16.3.1 reset()方法:重置表单元素的默认值
16.3.2 submit()方法:提交表单

第17章 Table表格对象
17.1 认识Table表格对象
17.1.1 语法参数说明
17.1.2 Table表格对象的属性
17.1.3 Table表格对象的方法
17.2 详解Table表格对象的属性
17.2.1 border属性:设置表格边框的宽度
17.2.2 caption属性:引用表格的元素
17.2.3 cellPadding属性:设置单元格边框和内容之间的空白距离
17.2.4 cellSpacing属性:设置单元格与单元格之间的空白距离
17.2.5 frame属性:设置表格的外部边框
17.2.6 id属性:返回表格的id值
17.2.7 rules属性:设置表格的内部边线
17.2.8 summary属性:返回对表格的描述
17.2.9 tFoot属性:返回表格的 标签
17.2.10 tHead属性:返回表格的 标签
17.2.11 width属性:设置表格的宽度
17.3 详解Table表格对象的方法
17.3.1 createCaption()方法:创建表格的 元素
17.3.2 createTFoot()、createTHead()方法:创建表格的表脚和表头
17.3.3 deleteCaption()方法:删除表格的 元素
17.3.4 deleteRow()、insertRow()方法:删除和插入表格行
17.3.5 deleteTFoot()、deleteTHead()方法:删除表格的表脚和表头

第18章 浏览器事件对象
18.1 浏览器事件列表
18.2 事件应用示例
18.2.1 onabort事件:图像加载被中断时的处理
18.2.2 onblur事件:元素失去焦点时的处理
18.2.3 onchange事件:域被改变时的处理
18.2.4 onclick事件:元素被单击时的处理
18.2.5 ondblclick事件:元素被双击时的处理
18.2.6 onerror事件:加载出现错误时的处理
18.2.7 onfocus事件:元素获得焦点时的处理
18.2.8 onkeydown事件:键盘按键被按下时的处理
18.2.9 onkeypress事件:键盘按键被按住时的处理
18.2.10 onkeyup事件:松开键盘按键时的处理
18.2.11 onload事件:页面加载时的处理
18.2.12 onmousedown事件:鼠标被按下时的处理
18.2.13 onmousemove事件:鼠标移动时的处理
18.2.14 onmouseout事件:鼠标离开元素时的处理
18.2.15 onmouseover事件:鼠标移动到元素上的处理
18.2.16 onmouseup事件:松开鼠标时的处理
18.2.17 onreset事件:重置按钮的处理
18.2.18 onresize事件:窗口调整尺寸时的处理
18.2.19 onselect事件:文本被选定时的处理
18.2.20 onsubmit事件:提交按钮的处理
18.2.21 onunload事件:退出页面时的处理
18.3 事件对象的属性
18.3.1 事件对象的属性列表
18.3.2 altKey、ctrlKey、shiftKey属性:判断Alt、Ctrl、Shift按键
18.3.3 button属性:判断是鼠标的哪个按键被单击
18.3.4 clientX、clientY属性:事件发生时鼠标相对于页面的坐标
18.3.5 fromElement、toElement属性:返回移出和移入的对象
18.3.6 keyCode属性:获取键盘事件的键盘按键代码
18.3.7 offsetX、offsetY属性:事件发生时鼠标相对事件元素的坐标
18.3.8 screenX、screenY属性:事件发生时鼠标相对于屏幕的坐标
18.3.9 srcElement属性:返回触发事件的对象
18.3.10 type属性:获取事件类型

第19章 其他常见DOM对象
19.1 Anchor锚对象
19.1.1 对象说明
19.1.2 Anchor锚对象的属性
19.1.3 Anchor锚对象的方法
19.1.4 Anchor锚对象的应用
19.2 Button按钮对象
19.2.1 对象说明
19.2.2 Button按钮对象的属性
19.2.3 Button按钮对象的方法
19.2.4 Button按钮对象的应用
19.3 Select下拉列表对象
19.3.1 对象说明
19.3.2 Select下拉列表对象的属性
19.3.3 Select下拉列表对象的方法
19.3.4 Select下拉列表对象的应用
19.4 Textarea文本域对象
19.4.1 对象说明
19.4.2 Textarea文本域对象的属性
19.4.3 a Textarea文本域对象的方法
19.4.4 Textarea文本域对象的应用
19.5 Style样式对象
19.5.1 对象说明
19.5.2 Style样式对象的属性
19.5.3 Style样式对象的应用

第5篇 ActiveX插件技术
第20章 ActiveX对象的应用
20.1 认识ActiveX对象
20.1.1 创建ActiveX对象
20.1.2 使用ActiveX对象获取本机IP地址
20.1.3 使用ActiveX对象导出Excel
20.2 常见的ActiveX对象操作示例
20.2.1 使用ActiveX对象操作Word
20.2.2 使用ActiveX对象实现多功能日期选择
20.2.3 使用ActiveX对象实现JavaScript进度条
20.2.4 使用ActiveX对象实现MediaPlayer的播放

第21章 FileSystemObject文件处理对象
21.1 认识FileSystemObject文件处理对象
21.1.1 FileSystemObject文件处理对象概述
21.1.2 FileSystemObject文件处理对象的属性
21.1.3 创建FileSystemObject文件处理对象
21.2 驱动器的操作
21.2.1 GetDrive()方法:获取指定的驱动器
21.2.2 驱动器可操作的所有属性
21.2.3 AvailableSpace属性:获取驱动器可用空间的大小
21.2.4 DriveLetter属性:返回驱动器的字母符号
21.2.5 DriveType属性:返回驱动器的类型
21.2.6 FileSystem属性:返回驱动器所用的文件系统类型
21.2.7 FreeSpace属性:返回驱动器剩余空间的大小
21.2.8 IsReady属性:判断驱动器是否就绪
21.2.9 Path属性:返回驱动器的路径
21.2.10 RootFolder属性:返回驱动器的根目录
21.2.11 SerialNumber属性:返回驱动器的序列号
21.2.12 ShareName属性:返回驱动器共享的名字
21.2.13 TotalSize属性:返回驱动器的全部空间大小
21.2.14 VolumeName属性:设置驱动器的卷标
21.3 文件夹的操作
21.3.1 GetFolder()方法:获取所有文件夹
21.3.2 文件夹可操作的所有方法
21.3.3 CreateFolder()方法:创建文件夹
21.3.4 Delete()、DeleteFolder()方法:删除文件夹
21.3.5 Move()、MoveFolder()方法:移动文件夹
21.3.6 Copy()、CopyFolder()方法:复制文件夹
21.3.7 GetParentFolderName()方法:获取父文件夹
21.3.8 GetSpecialFolder()方法:获取特殊文件夹
21.4 文件的操作
21.4.1 GetFile()方法:获取文件
21.4.2 文件可操作的所有方法
21.4.3 Write()、WriteLine()、WriteBlankLines()方法:向文件写内容
21.4.4 Read()、ReadLine()、ReadAll()方法:读取文件内容
21.4.5 Move()、MoveFile()方法:移动文件
21.4.6 Copy()、CopyFile()方法:复制文件
21.4.7 Delete()、DeleteFile()方法:删除文件

第22章 使用JavaScript操作数据库
22.1 ADO对象
22.1.1 ADO是什么
22.1.2 ADO的主要功能
22.1.3 ADO的主要对象
22.2 Connection对象
22.2.1 Connection对象的功能
22.2.2 Connection对象的属性
22.2.3 Connection对象的方法
22.2.4 Attributes属性:设置连接对象的属性
22.2.5 CommandTimeout属性:设置等待一条指令执行的时间
22.2.6 ConnectionString属性:设置数据源连接的详细设置
22.2.7 ConnectionTimeout属性:设置等待一个连接打开的时间
22.2.8 CursorLocation属性:设置指针的位置
22.2.9 DefaultDatabase属性:设置客户端建立连接的默认字符串
22.2.10 IsolationLevel属性:设置事件隔离级别
22.2.11 Mode属性:设置提供对象[provider]的访问权限
22.2.12 Provider属性:设置提供对象[provider]的名称
22.2.13 State属性:返回用于描述连接是否打开或关闭的状态值
22.2.14 Version属性:返回ADO版本号
22.2.15 BeginTrans()方法:开始一个新事务
22.2.16 Cancel()方法:取消一次执行
22.2.17 Close()方法:关闭一个连接
22.2.18 CommitTrans()方法:保存任何更改并结束当前事务
22.2.19 Execute()方法:执行查询、SQL语句、存储过程
22.2.20 Open()方法:打开一个连接
22.2.21 OpenSchema()方法:从provider返回数据源的schema信息
22.2.22 RollbackTrans()方法:取消事务中所作的任何更改并结束事务
22.3 Command对象
22.3.1 Command对象的功能
22.3.2 Command对象的属性
22.3.3 Command对象的方法
22.3.4 ActiveConnection属性:设置Connection对象的字符串
22.3.5 CommandText属性:设置命令字符串
22.3.6 CommandType属性:设置Command对象的类型
22.3.7 Name属性:设置Command对象的名称
22.3.8 Prepared属性:判断是否保存命令的编译版本
22.3.9 CreateParameter()方法:判断是否保存命令的编译版本
22.4 RecordSet对象
22.4.1 RecordSet对象的功能
22.4.2 RecordSet对象的属性
22.4.3 RecordSet对象的方法
22.4.4 AbsolutePage属性:设置或返回当前的页码
22.4.5 AbsolutePosition属性:设置当前记录的位置
22.4.6 BOF、EOF属性:判断游标是否处于记录集的开头或结尾
22.4.7 BookMark属性:返回记录集的书签
22.4.8 CacheSize 属性:设置内存中缓存记录的数目
22.4.9 CursorLocation属性:设置游标服务的类型
22.4.10 CursorType属性:指定所使用游标的种类
22.4.11 EditMode属性:返回当前记录的编辑状态
22.4.12 Filter属性:根据条件筛选记录集中的记录
22.4.13 Index属性:设置RecordSet对象当前有效的索引
22.4.14 LockType 属性:指定记录的锁定类型
22.4.15 MaxRecords属性:指定打开RecordSet对象所允许的最大记录数
22.4.16 PageSize属性:设置RecordSet对象每页所包含的记录数
22.4.17 PageCount属性:返回RecordSet对象中的数据页数
22.4.18 RecordCount属性:返回记录集中记录的条数
22.4.19 Sort属性:根据指定的字段和顺序对字段集进行排序
22.4.20 AddNew()方法:添加新记录
22.4.21 CancelBatch()方法:取消对RecordSet对象中数据的批量更新
22.4.22 CancelUpdate()方法:放弃对数据的更新
22.4.23 Clone()方法:创建RecordSet对象的复制版本
22.4.24 Delete()方法:删除当前记录
22.4.25 GetRows()方法:将RecordSet指定的记录写入一个数组
22.4.26 Move()方法:移动游标至指定位置
22.4.27 MoveFirst、MoveLast、MoveNext和MovePrevious方法:移动游标位置
22.4.28 NextRecordset()方法:执行下一条命令并返回记录集
22.4.29 Requery()方法:更新RecordSet对象中的数据
22.4.30 Resync()方法:从数据库中更新RecordSet对象中的数据
22.4.31 Seek()方法:在RecordSet对象中定位记录
22.4.32 Supports()方法:判断RecordSet对象是否支持某种功能
22.4.33 UpdateBatch()方法:保存对RecordSet对象中数据的批量更新

附录 索引
Introduction

Java Script是一种解释型的脚本语言,被大量地应用于网页中,用以实现和浏览用户的动态交互。目前几乎所有的浏览器都可以很好地支持Java Script,由于其可以及时地响应浏览者的操作、控制页面的行为表现、提升用户体验,JavaScript已经成为网页必不可少的组成部分。
然而JavaScript易学难精,作为一种弱类型的脚本语言,其语法非常贴近于自然语言,容错性能也很强。即使对其一知半解,往往也可以通过向页面中插入某些代码来实现简单的特性,因此JavaScript非常容易上手。但是,由于其应用领域的特点,牵涉的知识面非常广,如果需要按要求编写特定的脚本,就必须对此语言有较深的了解。
本书经过精心的编写,目的在于给不同程度的JavaScript使用者提供一个提高的途径。编者结合自己多年的JavaScript开发经验,为JavaScript程序员提供了自具体的JavaScript效果示例到JavaScript设计理念等不同层次的JavaScript知识。本书涉及面广,是JavaScript程序员提高程序设计水平、完善知识结构、扩展知识面的好帮手。
一、本书特点
1.内容编排合理,实例丰富
本书全面介绍了JavaScript脚本语言、对象使用以及文件和数据的访问组件。在介绍这些内容的同时讲解了大量的示例,能够帮助读者更好地理解本书所讲内容。
2.画龙点睛,突出技巧
编者结合多年开发经验,总结了大量JavaScript应用技巧奉献给读者,相信会令您眼前一亮。
3.循序渐进,层次分明
本书在编写顺序及知识分布上遵循由浅入深、循序渐进的原则,方便初学者快速入门,其他类型的用户也可以根据个人需要迅速查找到想要了解的内容。因此,可以适用于不同层次的读者。
4.简洁明了,通俗易懂
本书的三级目录中,都以简单明了的语言概括了所讲内容的作用和用途,能够帮助读者快速地把握所讲内容的主旨,有助于提高学习效率。
二、本书内容
本书分为五篇22章,详尽介绍了JavaScript的相关知识,各章内容依次介绍如下。
第1章讲解了JavaScript的基本功用以及编写代码的基本方式方法。
第2章讲解了JavaScript的语法基础,介绍了代码编写的规则和代码的架构。
第3章讲解了JavaScript中的函数和对象。
第4章讲解了JavaScript中常用的内部函数。
第5章讲解了String对象的属性、方法及使用。
第6章讲解了Number对象的属性、方法及使用。
第7章讲解了Date对象的属性、方法及使用。
第8章讲解了Math对象的属性、方法及使用。
第9章讲解了Array对象的属性、方法及使用。
第10章讲解了其他JavaScript对象,如Boolean、Function、Error等。
第11章讲解了Window对象的属性、方法及使用。
第12章讲解了Navigator浏览器对象的属性、方法及使用。
第13章讲解了Screen对象的属性、方法及使用。
第14章讲解了其他浏览器对象,如History对象、Location对象。
第15章讲解了Document对象的属性、方法及使用。
第16章讲解了Form对象的属性、方法及使用。
第17章讲解了Table对象的属性、方法及使用。
第18章讲解了JavaScript中常见的事件。
第19章讲解了其他常见的DOM对象,如Anchor、Button对象等。
第20章讲解了ActiveX组件技术的基本概念及几个应用示例。
第21章讲解了功能强大的文件系统操作对象FileSystemObject。
第22章讲解了数据库访问组件ADO中的重要对象的方法和属性。
索引:按英文字母列出本书所涉及方法与属性的索引,便于读者检索。
三、本书读者
适合阅读本书的读者如下。
希望开始学习JavaScript的新手。
迫切希望提高JavaScript编程能力的初级程序员。
具备一定的理论知识但是缺乏实践经验的程序员。
希望了解大型项目结构化程序设计和对象封装技术的JavaScript程序员。
需要进行客户端控件开发的程序员。
需要一个快速查阅手册的高级程序员。
四、本书编者
本书主要由陈冠军编写,其他参与编写和资料整理的人员有刘成、马臣云、潘娜、阮履学、陶则熙、王大强、王磊、徐琦、许少峰、颜盟盟、杨娟、杨瑞萍、于海波、俞菲、曾苗苗、赵莹、朱存等。由于编者水平有限,书中难免存在不足和疏漏之处,恳请读者批评指正。

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book