这几句话是什么意思,不懂?(25分)

  • 主题发起人 香槟女孩
  • 开始时间

香槟女孩

Unregistered / Unconfirmed
GUEST, unregistred user!
1、The exceptions are an insert form initializing blank, meaning with empty input elements, and an update form initializing with values.
2、These methods should contact your Web service and retrieve or send only the XML that is required to perform the requested operation.This approach will reduce load on your server tremendously. Instead of having todo
a round trip back to the server, request the whole tree, and then
render the whole tree again, you can make one easy behind-the-scenes call that updates your data, then
updates only the area of the client browser that is required for your operation.
3、This method first checks to ensure that the left mouse button fired the event, instead of the right (which is used for context menus). It then
sets the proper property values and cancels the bubbling of events within the client browser.
4、This method first ensures that there is an entity selected. Depending on whether or not the user currently has a target selected, it either returns the entity to its origin (given no target) or moves the entity to its new location (given a target).
 

千年冰虫

Unregistered / Unconfirmed
GUEST, unregistred user!
你为什么不去用东方快车或金山快译之类的工具呢?
 

哈利波特

Unregistered / Unconfirmed
GUEST, unregistred user!
呵呵,俺的英文不好!
你这些语句都是在什么地方(什么时候)出现的啊?
请用金山词霸![8D]
 
Y

Yves

Unregistered / Unconfirmed
GUEST, unregistred user!
3、这个方法首先会检查以确定 按下鼠标左键的事件 已被触发——而并不是右键(右键是用来显示菜单的)。
然后它(这个方法)就会设定一个适当的属性值并且在客户端浏览器中取消计划中的 事件(理解为任务似乎更贴切——Yves注)。
4、这个方法首先要确定已有一个实体被选中。依托于用户是否设定了target属性值,这个方法有两种选择:
其一、若未曾设定,它(这个方法)会将这个实体的位置返回给origin属性(“位置”两字是我推测原句妄自加上的,这个origin、target属性究竟是什么?这句话中并未指出,需看原文——Yves注);
其二、若已设定,它(这个方法)就会将这个实体移动到新的位置(即target属性确定的位置)。
to 香槟女孩
1、2两句,涉及到我不知的术语,我不敢冒然翻译。
3、4两句虽已译出,但不联系上下文,我不敢保证十分正确。
仅供参考,误了你的事不要赖我!
 
C

Crane

Unregistered / Unconfirmed
GUEST, unregistred user!
这应该是Advanced UI Design Using XML and XSL中的话,又不是高科技为何不整段贴?
第一句原文:
Inserting and updating are very similar because both operations
deal with the exact same set of data and use the exact same form.
The exceptions are an insert form initializing blank, meaning with
empty input elements, and an update form initializing with values
.....所不同的是插入页面的初始状态,每个输入框应该是空的,而修改记录
的页面的初始状态,每个输入框因该有原始值
 
C

Crane

Unregistered / Unconfirmed
GUEST, unregistred user!
If you are required to interface with a database, I can make the following
recommendations. Use the XMLHTTP object within the init(), insertEntity(),
updateEntity(), deleteEntity(), and renameEntityEnd() methods. These methods
should contact your Web service and retrieve or send only the XML that is
required to perform the requested operation.
This approach will reduce load on your server tremendously.
Instead of having todo
a round trip back to the server, request the
whole tree, and then
render the whole tree again, you can make one easy
behind-the-scenes call that updates your data, then
updates only the area
of the client browser that is required for your operation.
...这些method会给你的web service带来一种(新的)通讯方式,这种方式只需要依靠
发送或接受XML报文就可以完成服务响应的操作。通过这种方式,会避免你的服务器被
频繁的访问,否则就只好再跑一趟服务端,把整个树(指界面中的目录树)再统统取到
客户端,重新建一次树。你完全可以轻松的在后台调用这些方法来刷新你的数据,所刷
新的数据仅仅是与你在客户浏览器上操作相关的那部分数据。
 
C

cloudjava

Unregistered / Unconfirmed
GUEST, unregistred user!
up
翻得不錯
不知是否從書上抄得
 
A

AIHUA

Unregistered / Unconfirmed
GUEST, unregistred user!
女孩在怎么都提怎么难得问题
有帮你的心 是不是劲呀
 
C

Crane

Unregistered / Unconfirmed
GUEST, unregistred user!
cloudjava,什么话,绝对是原创啊~~~~,>_<~~~~
AIHUA,君不闻男人征服世界而征服女人,女人征服男人而征服世界啊。
咱们是学,她们是问,和起来才是学问啊。
 
Y

Yves

Unregistered / Unconfirmed
GUEST, unregistred user!
有意思:)
我想请教 crane
我 翻译的那两句话 有和纰漏之处,请帮忙指正,多谢了
 
C

Crane

Unregistered / Unconfirmed
GUEST, unregistred user!
后两句确实有难度:第三句中最后:
cancels the bubbling of events within the client browser.
中止事件串(这是javascript中的专有名词)在客户浏览器中继续向下分发。
作者用了bubbling这个词,原意是发泡,很生动形象,因为javascript引擎
对事件的处理是从底层对象一直向上层对象传递,如果没有代码控制,事件
会一直通知到网页中最后一个对象,就像渔缸往上冒泡一样。译者可以加上
一段解释,然后直译为冒泡,当然只是我个人的见解。
fired the event 微软固定用语,即触发事件
 
C

Crane

Unregistered / Unconfirmed
GUEST, unregistred user!
function endDrag() {
if(this.entity != null) {
this.entity.style.position = "static";
this.entity.style.left = null;
this.entity.style.top = null;
this.entity = this.entity.removeNode(true);
if(this.target != null) {
dragControl.target.appendChild(this.entity);
if(this.target.open != "true") {
clickOnEntity(this.target);
}
}
else
{
this.origin.appendChild(this.entity);
}
do
cument.onmousemove = null;
do
cument.onmouseup = null;
this.entity = null;
this.target = null;
this.enabled = false;
}
}
This method first ensures that there is an entity selected.
Depending on whether or not the user currently has a target selected,
it either returns the entity to its origin (given no target) or moves
the entity to its new location (given a target).
文章连接:
http://www.15seconds.com/issue/011129.htm
origin 应该是指被托动对象的原来的父对象,如果没有新的目标对象,就恢复
父子关系。如果有,就跟目标对象建立父子关系。
 
Y

Yves

Unregistered / Unconfirmed
GUEST, unregistred user!
多谢指点
:)
 
C

CJ

Unregistered / Unconfirmed
GUEST, unregistred user!
多人接受答案了。
 

Similar threads

I
回复
0
查看
2K
import
I
I
回复
0
查看
3K
import
I
I
回复
0
查看
2K
import
I
I
回复
0
查看
633
import
I
I
回复
0
查看
1K
import
I
顶部