{{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面向对象编程指南(第2版)

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

JavaScript面向对象编程指南(第2版)

{{__(":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

知名的Web开发人员和作者。受到国内众多前端开发人员,如淘宝UED团队的推崇和推荐。 Stoyan Stefanov:Facebook公司工程师、作家、演说家。他经常会在其博客(www.phpied.com)与一些相关会议中就Web开发话题发表独到见解。他还运营着其他一些网站,其中包括JSPatterns.com—一个用于探讨JavaScript模式的网站
内容易懂,初学者容易上手
Content Description

JavaScript语言是一种具有高度表达能力的、基于原型特性的、非常灵活的面向对象程序设计语言。本书着重于介绍JavaScript在面向对象方面的特性,以为您展示如何去构建强健的、可维护的、功能强大的应用程序及程序库。
本书是《JavaScript面向对象编程指南》的第二版,全书包括8章和4个附录。依次介绍了JavaScript的发展历史、基础性话题(变量、数据类型、数组、循环以及条件表达式)、函数、对象、原型、继承的实现、BOM和DOM等。附录部分包括了学习JavaScript编程常用的参考资源。尤其值得一提的是,本书作者是JavaScript设计模式方面的专家,他在本书第8章中介绍了几种常用的JavaScript编程模式,这也成为他的另一本重要著作《JavaScript模式》(JavaScript Patterns)奠定了基础。
本书全面地覆盖了JavaScript语言的OO特性,同时兼顾基础知识,对初学者来说,是难得的JavaScript佳作。读者不需要具备任何的JavaScript基础知识及项目经验,通过学习这本书,将会在面试有关JavaScript程序设计的职位时游刃有余。
Author Description

Stoyan Stefanov:Facebook公司工程师、作家、演说家。他经常会在博客(www.phpied.com)上与一些相关会议中就Web开发话题发表独到见解。他还运营着其他一些网站,其中包括JSPatterns.com——一个专门探讨JavaScript模式的网站。Stoyan曾在Yahoo!公司任职,担任YSlow 2.0架构师职务,并且是图像优化工具Smush.it的作者。
Kumar Chetan Sharma原本一直致力于成为一个电子工程师,并梦想着打造一个音响系统。但由于一次偶然的机会,他得到了一份与HTML相关的兼职,然后自然地学习了CSS和JavaScript,从此便一发不可收拾。要知道在那个年代,JavaScript基本上还只能用来验证表单和制作一些奇特的DHTML效果,且IE6还在世界范围内独占鳌头。但就从那时起,他就已经在开发基于LAMP架构的Web应用了。从白色标签的社交网络应用,到为电信运营商制作的Web控制面板,再到联网的电子充电设备,都有他开发的身影。目前他在Yahoo!公司的搜索部门从事前端工程师的工作。
Catalogue

第1章 面向对象的JavaScript 1
1.1 回顾历史 2
1.2 浏览器的战争与复兴 3
1.3 分析现状 4
1.4 展望未来 5
1.5 ECMAScript 5 6
1.6 面向对象的程序设计 6
1.6.1 对象 7
1.6.2 类 8
1.6.3 封装 8
1.6.4 聚合 9
1.6.5 继承 9
1.6.6 多态 10
1.7 OOP小结 10
1.8 训练环境设置 11
1.8.1 WebKit所附带的Web审查工具 11
1.8.2 Mac上的JavaScriptCore 12
1.8.3 更多控制台 13
1.9 本章小结 15

第2章 基本数据类型、数组、循环及条件表达式 16
2.1 变量 16
2.2 操作符 19
2.3 基本数据类型 23
2.3.1 查看类型操作符—typeof 24
2.3.2 数字 24
2.3.3 字符串 29
2.3.4 布尔值 33
2.3.5 undefined与null 39
2.4 基本数据类型综述 41
2.5 数组 42
2.5.1 增加、更新数组元素 43
2.5.2 删除元素 44
2.5.3 数组的数组 44
2.6 条件与循环 45
2.6.1 if条件表达式 46
2.6.2 else语句 46
2.6.3 代码块 47
2.6.4 检查变量是否存在 48
2.6.5 循环 53
2.7 注释 58
2.8 本章小结 58
2.9 练习题 59

第3章 函数 61
3.1 什么是函数 62
3.1.1 调用函数 62
3.1.2 参数 63
3.2 预定义函数 64
3.2.1 parseInt() 65
3.2.2 parseFloat() 67
3.2.3 isNaN() 68
3.2.4 isFinite() 68
3.2.5 URI的编码与反编码 69
3.2.6 eval() 69
3.2.7 一点惊喜—alert()函数 70
3.3 变量的作用域 71
3.4 函数也是数据 73
3.4.1 匿名函数 75
3.4.2 回调函数 75
3.4.3 回调示例 77
3.4.4 即时函数 79
3.4.5 内部(私有)函数 80
3.4.6 返回函数的函数 81
3.4.7 能重写自己的函数 82
3.5 闭包 83
3.5.1 作用域链 84
3.5.2 利用闭包突破作用域链 85
3.5.3 getter与setter 91
3.5.4 迭代器 92
3.6 本章小结 93
3.7 练习题 93

第4章 对象 95
4.1 从数组到对象 95
4.1.1 元素、属性、方法与成员 97
4.1.2 哈希表、关联型数组 98
4.1.3 访问对象属性 98
4.1.4 调用对象方法 100
4.1.5 修改属性与方法 101
4.1.6 使用this值 102
4.1.7 构造器函数 102
4.1.8 全局对象 104
4.1.9 构造器属性 106
4.1.10 instanceof操作符 106
4.1.11 返回对象的函数 107
4.1.12 传递对象 108
4.1.13 比较对象 109
4.1.14 Webkit控制台中的对象 110
4.2 内建对象 111
4.2.1 Object 112
4.2.2 Array 113
4.2.3 Function 117
4.2.4 Boolean 124
4.2.5 Number 125
4.2.6 String 127
4.2.7 Math 132
4.2.8 Date 134
4.2.9 RegExp 139
4.2.10 Error对象 146
4.3 本章小结 149
4.4 练习题 150

第5章 原型 153
5.1 原型属性 154
5.1.1 利用原型添加方法与属性 154
5.1.2 使用原型的方法与属性 155
5.1.3 自身属性与原型属性 156
5.1.4 利用自身属性重写原型属性 158
5.1.5 isPrototypeOf()方法 162
5.1.6 神秘的__proto__链接 163
5.2 扩展内建对象 164
5.2.1 关于扩展内建对象的讨论 166
5.2.2 原型陷阱 167
5.3 本章小结 169
5.4 练习题 170

第6章 继承 171
6.1 原型链 171
6.1.1 原型链示例 172
6.1.2 将共享属性迁移到原型中去 175
6.2 只继承于原型 178
6.3 uber—子对象访问父对象的方式 181
6.4 将继承部分封装成函数 183
6.5 属性拷贝 185
6.6 请小心处理引用拷贝 187
6.7 对象之间的继承 190
6.8 深拷贝 192
6.9 object() 194
6.10 原型继承与属性拷贝的混合应用 195
6.11 多重继承 197
6.12 寄生式继承 199
6.13 构造器借用 200
6.14 本章小结 203
6.15 案例学习:图形绘制 206
6.15.1 分析 207
6.15.2 实现 207
6.15.3 测试 211
6.16 练习题 213

第7章 浏览器环境 215
7.1 在HTML页面中引入JavaScript代码 215
7.2 概述:BOM与DOM 216
7.3 BOM 217
7.3.1window对象再探 217
7.3.2window.navigator 218
7.3.3控制台的备忘功能 219
7.3.4window.location 219
7.3.5window.history 221
7.3.6window.frames 222
7.3.7window.screen 223
7.3.8window.open()/close() 224
7.3.9window.moveTo()、window.resizeTo() 225
7.3.10window.alert()、window.prompt()、window.confirm() 225
7.3.11window.setTimeout()、window.setInterval() 227
7.3.12window.document 229
7.4 DOM 229
7.4.1Core DOM与HTML DOM 231
7.4.2DOM节点的访问 233
7.4.3DOM节点的修改 242
7.4.4新建节点 245
7.4.5移除节点 248
7.4.6只适用于HTML的DOM对象 250
7.5 事件 254
7.5.1内联HTML属性法 254
7.5.2元素属性法 254
7.5.3DOM的事件监听器 255
7.5.4捕捉法与冒泡法 257
7.5.5阻断传播 258
7.5.6防止默认行为 260
7.5.7跨浏览器的事件监听器 261
7.5.8事件类型 262
7.6 XMLHttpRequest对象 263
7.6.1发送请求 264
7.6.2处理响应 265
7.6.3在早于7的IE版本中创建XMLHttpRequest对象 266
7.6.4A代表异步 267
7.6.5X代表XML 267
7.6.6实例示范 268
7.7 本章小结 270
7.8 练习题 272

第8章 编程模式与设计模式 274
8.1 编程模式 275
8.1.1 行为隔离 275
8.1.2 命名空间 278
8.1.3 初始化分支 281
8.1.4 惰性初始 282
8.1.5 配置对象 283
8.1.6 私有属性和方法 285
8.1.7 特权函数 286
8.1.8 私有函数的公有化 286
8.1.9 即时函数 287
8.1.10 模块 288
8.1.11 链式调用 289
8.1.12 JSON 290
8.2 设计模式 292
8.2.1 单件模式1 292
8.2.2 单件模式2 293
8.2.3 工厂模式 294
8.2.4 装饰器模式 296
8.2.5 观察者模式 299
8.3 本章小结 302

附录A 保留字 303
附录B 内建函数 307
附录C 内建对象 310
附录D 正则表达式 347

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