返回信息流A different approach would avoid replicating validation rules and methods on both the
client and server sides, instead sending the whole form via Ajax to the server, usually
on submit of the form. It could then use the same logic on the server side that is in place
already.
关键是逻辑上, instead sending the whole form via Ajax to the server, usually
on submit of the form这句话怎么理解?
谢谢
这是一条镜像帖。来源:北邮人论坛 / english-bar / #57036同步于 2011/2/23
该镜像源已超过 30 天没有更新,可能在源站已被删除。
EnglishBar机器人发帖
求翻译
seaver
2011/2/23镜像同步17 回复
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
一种与之不同方法可以避免在客户端和服务器端同时复制验证规则,即避免在提交表单时将整个表单通过Ajax发送给服务器,然后服务器端将会启用已经存在的相同的逻辑。
我是这么理解的。不过这个应该要结合上下文来理解。
谢谢
我和你理解的基本一致 就是说instead sending the whole form via Ajax to the server, usually
on submit of the form 这句中 instead 后面的方法不会被使用
而 on submit of the form 中的on 是“。。。的时候”的意思? 是不是?
可是 on后面怎么直接是动车submit?
【 在 wan751 的大作中提到: 】
: 一种与之不同方法可以避免在客户端和服务器端同时复制验证规则,即避免在提交表单时将整个表单通过Ajax发送给服务器,然后服务器端将会启用已经存在的相同的逻辑。
: 我是这么理解的。不过这个应该要结合上下文来理解。
不知道,也许在老外眼里一些词的词性可以活用的,我以前也碰到过这种现象,毕竟语言是很灵活的东西,中文也有这种情况。所以现在我都不过问语法了,只要有老外这么用我就认为是对的。
【 在 seaver 的大作中提到: 】
: 谢谢
: 我和你理解的基本一致 就是说instead sending the whole form via Ajax to the server, usually
: on submit of the form 这句中 instead 后面的方法不会被使用
: ...................
avoid……到instead前面,就是说 这种新的方法不会复制…………,而是将整个form通过Ajax…………………………
【 在 seaver (benny) 的大作中提到: 】
: A different approach would avoid replicating validation rules and methods on both the
: client and server sides, instead sending the whole form via Ajax to the server, usually
: on submit of the form. It could then use the same logic on the server side that is in place
: ...................
on就是这么用的
【 在 seaver (benny) 的大作中提到: 】
: 谢谢
: 我和你理解的基本一致 就是说instead sending the whole form via Ajax to the server, usually
: on submit of the form 这句中 instead 后面的方法不会被使用
: ...................
具体的技术方面的逻辑我也不知道
【 在 LoveRose (【风早粉丝团】风早她哥) 的大作中提到: 】
: avoid……到instead前面,就是说 这种新的方法不会复制…………,而是将整个form通过Ajax…………………………
谢谢
那么usually这部分怎们翻译?后面的一句是The drawback is that user feedback is slower, because it is impractical to send a request for every keypress 应该就是
该方法的缺点是给用户的反馈很缓慢,因为对于每次按键都发送请求是不切合实际的
【 在 LoveRose 的大作中提到: 】
: avoid……到instead前面,就是说 这种新的方法不会复制…………,而是将整个form通过Ajax…………………………
通常是在submit form的时候send the whole form via Ajax……吧,我的理解,技术方面我也不懂。。。
【 在 seaver (benny) 的大作中提到: 】
: 谢谢
: 那么usually这部分怎们翻译?后面的一句是The drawback is that user feedback is slower, because it is impractical to send a request for every keypress 应该就是
: 该方法的缺点是给用户的反馈很缓慢,因为对于每次按键都发送请求是不切合实际的
: ...................
呃~似乎你才是对的,呵呵!
你是学英语专业的?
【 在 LoveRose 的大作中提到: 】
: avoid……到instead前面,就是说 这种新的方法不会复制…………,而是将整个form通过Ajax…………………………
: 【 在 seaver (benny) 的大作中提到: 】
: : A different approach would avoid replicating validation rules and methods on both the
: ...................