{{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

全彩色印刷,零基础学编程,孩子也能读懂的编程图书
教授思路清晰,内容活泼,易于学习和掌握
通过有趣的绘图程序或游戏,激发读者的学习兴趣
每章末尾的编程挑战,举一反三,帮助读者牢固掌握所学的知识和技能
Content Description

JavaScript是Internet的语言,是创建令人惊讶的Web、你喜欢的站点交互和在线游戏的秘密武器。
《趣学JavaScript 教孩子学编程》用轻松愉快的方式,通过耐心的、按部就班的示例,以及充满乐趣的图示,帮助读者轻松地学习编程基础知识。全书共16章,从基础知识开始,详细介绍了操作字符串、数组以及循环,然后继续学习一些高级话题,如使用jQuery构建交互性,以及使用画布绘图等。本书通过教授编写一些简单有趣的游戏,帮助读者掌握JavaScript编程。每一章都构建于上一章的基础之上,并且每章末尾的编程挑战能够激发读者更多的思考和学习兴趣。
《趣学JavaScript 教孩子学编程》针对任何想要学习JavaScript或初次接触编程的人。本书针对儿童学习JavaScript量身定做,但也适合作为不同年龄的初学者的第1本编程图书。
Author Description

Nick Morgan是Twitter的一名前端工程师。他热爱编程,并且特别关注JavaScript。Nick和她的未婚妻,以及他们的绒毛犬Pancake,居住在旧金山。他的博客是skilldrick.co.uk。
Catalogue

目录
第1部分基础知识
第1章认识JavaScript 2
1.1认识JavaScript 3
1.2为何要学习JavaScript 5
1.3编写JavaScript 5
1.4JavaScript程序的结构 7
1.4.1语法 8
1.4.2注释 9
1.5本章小结 10
第2章类型与变量 11
2.1数字和运算符 12
2.2变量 15
2.2.1命名变量 16
2.2.2使用数学创建新的变量 17
2.2.3递增和递减 18
2.2.4+=(加后赋值)和-=(减后赋值) 19
2.3字符串 20
2.3.1连接字符串 21
2.3.2查找字符串的长度 22
2.3.3从字符串中获取单个字符 22
2.3.4截取字符串 23
2.3.5把字符串转换为全部大写或全部小写 24
2.4Boolean 26
2.4.1逻辑操作符 26
2.4.2用Boolean比较数字 28
2.5undefined和null 32
2.6本章小结 33
第3章数组 34
3.1为什么要学习数组 35
3.2创建数组 36
3.3访问数组元素 37
3.4设置和修改数组中的元素 38
3.5数组中的混合数据类型 39
3.6使用数组 40
3.6.1查看数组的长度 40
3.6.2为数组添加元素 41
3.6.3从数组中删除元素 42
3.6.4数组相加 44
3.6.5查找数组中单个元素的索引 46
3.6.6把数组转换成字符串 46
3.7数组的用途 48
3.7.1找到回家的路 48
3.7.2决策者程序 50
3.7.3创建一个随机句子生成器 52
3.8本章小结 53
3.9编程挑战 54
第4章对象 55
4.1创建对象 56
4.2访问对象中的值 58
4.3给对象添加值 58
4.4把数组和对象组合到一起 60
4.5在控制台查看对象 62
4.6对象的用途 63
4.6.1记录欠款 64
4.6.2保存电影信息 65
4.7本章小结 66
4.8编程挑战 66
第5章HTML的基础知识 68
5.1文本编辑器 69
5.2第一个HTML文档 70
5.3标签和元素 70
5.3.1标题元素 71
5.3.2段落元素 71
5.3.3HTML中的空白和块级元素 72
5.3.4内联元素 73
5.4完整的HTML文档 74
5.5HTML层级 75
5.6为HTML添加链接 76
5.6.1link属性 76
5.6.2title属性 77
5.7本章小结 78
第6章条件与循环 79
6.1在HTML中嵌入JavaScript 80
6.2条件 81
6.2.1if语句 81
6.2.2if…else语句 82
6.2.3if…else语句串 83
6.3循环 86
6.3.1while循环 86
6.3.2for 循环 88
6.4本章小结 91
6.5编程挑战 91
第7章创建Hangman游戏 94
7.1与玩家交互 95
7.1.1创建一个输入对话框 95
7.1.2使用confirm函数询问Yes或者No 97
7.1.3使用alert为玩家提供信息 98
7.1.4为什么使用alert对话框而不是console.log呢 98
7.2设计游戏 99
7.2.1使用伪代码来设计游戏 99
7.2.2记录单词的状态 100
7.2.3设计游戏循环 101
7.3编写游戏代码 101
7.3.1选择一个随机单词 101
7.3.2创建answerArray数组 102
7.3.3编写游戏循环 102
7.3.4结束游戏 106
7.4游戏代码 106
7.5本章小结 108
7.6编程挑战 108
第8章函数 110
8.1函数的基本结构 111
8.2创建一个简单的函数 111
8.3调用一个函数 111
8.4把参数传递到函数中 112
8.4.1打印猫脸 113
8.4.2为一个函数传递多个参数 114
8.5从函数中返回值 115
8.6把函数调用当作值来使用 117
8.7使用函数来简化代码 118
8.7.1挑选随机单词的函数 118
8.7.2随机句子生成器 118
8.7.3把随机句子生成器封装到一个函数中 120
8.8用return提前跳出函数 120
8.9使用多个return来代替if…else语句 121
8.10本章小结 123
8.11编程挑战 123
第2部分高级JavaScript
第9章DOM和jQuery 128
9.1选择DOM元素 129
9.1.1用id标识元素 129
9.1.2使用getElementById选中一个元素 130
9.1.3使用DOM替换标题文本 130
9.2用jQuery操作DOM 132
9.2.1在HTML页面中加载jQuery 133
9.2.2使用jQuery替代标题文本 133
9.3用jQuery创建一个新的元素 134
9.4使用jQuery让元素产生动画效果 135
9.5链化jQuery的动画方法 136
9.6本章小结 137
9.7编程挑战 137
第10章交互式编程 139
10.1使用setTimeout函数延时代码 140
10.2取消一个timeout 141
10.3用setInterval多次调用代码 141
10.4使用setInterval函数实现元素动画 143
10.5对用户行为做出响应 145
10.5.1对单击做出响应 145
10.5.2鼠标移动事件 147
10.6本章小结 148
10.7编程挑战 148
第11章寻找埋藏的宝藏 150
11.1设计游戏 151
11.2用HTML创建Web页面 152
11.3选取一个随机藏宝位置 153
11.3.1选取随机数 153
11.3.2设置宝藏坐标 153
11.4单击事件处理程序 154
11.4.1统计单击 154
11.4.2计算单击和宝藏之间的距离 154
11.4.3使用毕达哥拉斯定理 155
11.4.4告诉玩家他们有多近 157
11.4.5检查玩家是否赢了 158
11.5综合应用 158
11.6本章小结 160
11.7编程挑战 160
第12章面向对象编程 161
12.1一个简单的对象 162
12.2给对象添加方法 162
12.2.1使用this关键字 163
12.2.2在多个对象之间共享方法 163
12.3使用构造方法创建对象 165
12.3.1剖析构造方法 165
12.3.2创建一个Car构造方法 165
12.4绘制汽车 167
12.5测试drawCar函数 168
12.6用原型定制对象 169
12.6.1给Car原型添加一个draw方法 170
12.6.2添加一个moveRight方法 171
12.6.3添加向左、向上和向下移动的方法 172
12.7本章小结 173
12.8编程挑战 174
第3部分Canvas
第13章canvas元素 176
13.1创建一个基本的画布 177
13.2在画布上绘制 177
13.2.1选择和保存canvas元素 177
13.2.2获取绘制环境 178
13.2.3绘制方块 178
13.2.4绘制多个方块 178
13.3更改绘制颜色 180
13.4绘制矩形边框 181
13.5绘制线条或路径 182
13.6填充路径 184
13.7绘制圆弧和圆 185
13.7.1绘制四分之一圆或一个圆弧 186
13.7.2绘制一个半圆 187
13.7.3绘制一个完整的圆 187
13.8用一个函数绘制多个圆 187
13.9本章小结 189
13.10编程挑战 190
第14章在画布上让物体移动 192
14.1在页面中移动 193
14.1.1清除画布 194
14.1.2绘制矩形 194
14.1.3修改位置 194
14.1.4在浏览器中查看动画 194
14.2对方块的大小实现动画 195
14.3随机的蜜蜂 196
14.3.1一个新的circle函数 196
14.3.2绘制蜜蜂 197
14.3.3更新蜜蜂的位置 198
14.3.4实现嗡嗡飞的蜜蜂动画 200
14.4弹回一个球 201
14.4.1Ball构造方法 202
14.4.2绘制球 202
14.4.3移动球 203
14.4.4弹跳球 204
14.4.5实现球的动画 205
14.5本章小结 206
14.6编程挑战 207
第15章用键盘控制动画 209
15.1键盘事件 210
15.1.1建立HTML文件 210
15.1.2添加keydown事件处理程序 210
15.1.3使用对象把键代码转换为名称 212
15.2用键盘移动一个球 213
15.2.1设置画布 213
15.2.2定义circle函数 214
15.2.3创建Ball构造方法 214
15.2.4定义move方法 214
15.2.5定义draw方法 215
15.2.6创建setDirection方法 216
15.2.7对键盘做出响应 217
15.2.8实现球的动画 218
15.3综合应用 219
15.4运行代码 221
15.5本章小结 222
15.6编程挑战 222
第16章开发贪吃蛇游戏第1部分 224
16.1游戏逻辑 225
16.2游戏的结构 225
16.2.1使用setInterval来实现游戏动画 227
16.2.2创建游戏对象 228
16.2.3设置键盘控制 228
16.3游戏设置 228
16.3.1创建HTML 228
16.3.2定义canvas、ctx、width和height变量 229
16.3.3将画布划分为块 229
16.3.4定义score变量 231
16.4绘制边框 231
16.5显示分数 232
16.5.1设置文本基线 233
16.5.2设置大小和字体 234
16.5.3编写drawScore函数 236
16.6结束游戏 237
16.7本章小结 238
16.8编程挑战 238
第17章开发贪吃蛇游戏第2部分 240
17.1构建Block构造方法 241
17.1.1添加drawSquare方法 242
17.1.2添加drawCircle方法 243
17.1.3添加equal方法 244
17.2创建贪吃蛇 245
17.2.1编写Snake构造方法 246
17.2.2绘制贪吃蛇 247
17.3移动贪吃蛇 247
17.3.1添加move方法 248
17.3.2添加checkCollision方法 251
17.4用键盘设置贪吃蛇的方向 253
17.4.1添加keydown事件处理程序 253
17.4.2添加setDirection方法 254
17.5创建苹果 255
17.5.1编写Apple构造方法 255
17.5.2绘制苹果 256
17.5.3移动苹果 256
17.6综合应用 257
17.7本章小结 262
17.8编程挑战 263
术语表 265
后记继续学习之路 269

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