敬告读者
一、为方便读者订正《Dojo权威指南》第1版第1次印刷中存在的错误,译者经过对本书全面审读、修改、标记后,拍摄了79幅勘误照片。由于逐一发布在网页上既浪费时间,又不利于读者下载查阅,因此我将它们打包为一个压缩文件,读者可以通过《Dojo权威指南》照片勘误下载页面单击“下载”按钮下载。
二、下载后,请先解压缩。其中,照片格式为.jpg,文件名的形式统一为“Dojo_DTG_11.jpg”,最关键的是“11”,它代表纸质书中的页码。因此,读者打开一幅照片,根据其文件名中的数字,就能知道该照片源于纸质书的哪一页。只要翻到对应页面,在具体位置上作出相同的修改或修订即可。
为之漫笔(李松峰),本博客专注于Web前后端技术、移动平台开发技术、交互设计和技术翻译。声明一下,因为时常需要外出审稿,而且基本不带笔记本,所以有时可能会迟一点回复大家的留言。
P149,
原文:
dojo.query(“span.foo”, someDomNode).addClass(“foo”).removeClass(“bar”);
这里是不是有问题, 既然query得到的是class等于foo的span节点, 那么为什么还需要调用addClass(“foo”).
正确的是不是应该是:
dojo.query(“span.foo”, someDomNode).removeClass(“foo”).addClass(“bar”);
P241,原文:
“然后取得要将这个数据项加入其中的子数据项, 最后再把它添加到取得的子数据项的集合中”。
这一段翻译的应该有点问题。 我没有看到英文的原文, 但是根据上下文的意思, 是不是应该翻译成:
“然后取得要将这个数据项加入其中的父数据项, 取得父数据项的子数据项集合, 然后再把新的数据项添加到集合中。”
P243
例9-15
dojo.require(“dojo.data.ItemFileReadStore”);
…
coffeeStore = new dojo.data.ItemFileReadStore({url:”coffee.json”});
应该改成
dojo.require(“dojo.data.ItemFileWriteStore”);
…
coffeeStore = new dojo.data.ItemFileWriteStore({url: “coffee.json”});
P244
例9-16
在这里例子里面只调用了一次setValues方法。 原文如下
//修改这个数据项-触发一个通知
coffeeStore.setValues(darkRoasts, “children”, darkRoastChildren.concat(newItem));
既然只修改了一次而且根据注释也只发送一个通知。
那么为什么输出结果
Just modified the children attribute for Dark Roasts
会被打印两次
P144 表5-2
addContent(/*String*/content,/*String?|Integer?*/position)
根据对应的说明,content既可以是String也可以是节点,那么应该改成
addContent(/*String|Node*/content,/*String?|Integer?*/position)
更准确
P144表5-2
style(/*String|Object*/style)
style方法既可以是读取也可以是设置样式,所以改成
style(/*String|Object*/style, /*String?*/value)更准确
多谢指出。
照片都看不到
Good website. I was checking constantly this website and I am impressed! Very useful information specially the last part I care for such information much.
Looking for this information, which is very helpful, thank you.
Thanks for your share,thanks a lot.Good luck!
Took me awhile to read all the comments, but I really love the article. It proved to be very useful to me and I am sure to all the commenters here!
Who has deceiv'd thee so oft as thy self?
Thanks a lot for sharing this with all of us you really realize what you are speaking approximately! Bookmarked. Thank you!
The lanscope belongs towards guy who appears at it. (Ralph Waldo Emerson, American thinker)
Mulberry Bag which is famous for fashionable appearance and high quality have earned a good reputation all over the world. We offer some most popular Mulberry Shoulder Bags in an accessable price to you.
Life is a smile to face the reality that the future of watching over obstacles; life is with the heart of the scissors, cut out in the way of life leaves green branches; life, is the face of confusion or darkness, the soul ignite beans big smile was bright and light show.
Your article is useful for me. It is a good article.