简体   繁体   English

谷歌文档分享使用哪种技术

[英]Which kind of technology are used on google docs share

I need understand and know about how I can do something. 我需要了解并了解我可以做些什么。 In my project I need create something similar to technology on google docs. 在我的项目中,我需要在google docs上创建类似于技术的东西。

When I have a share document with other people and he and I are editing in same time and I see the alterations from him. 当我和其他人共享文件时,他和我正在同时编辑,我看到了他的改动。

I don't know if is called inverse ajax or other type of techology. 我不知道是否被称为逆ajax或其他类型的技术。

Someone can explain to me which kind of development is it. 有人可以向我解释它是哪种发展。

--EDIT-- - 编辑 -

On trello.com I found the same idea. 在trello.com上我发现了同样的想法。 When someone change a issue o tab in my dashboard I receive this information. 当有人更改我的信息中心中的问题o标签时,我会收到此信息。

It's called Operational Transformation (OT) 它被称为运营转型(OT)

This article could be usefull: http://en.wikipedia.org/wiki/Operational_transformation 本文可能很有用: http//en.wikipedia.org/wiki/Operational_transformation

Taken from the same article: 取自同一篇文章:

The basic idea of OT can be illustrated by using a simple text editing scenario as follows. OT的基本思想可以通过使用如下的简单文本编辑方案来说明。 Given a text document with a string "abc" replicated at two collaborating sites; 给定一个文本文档,在两个合作站点复制字符串“abc”; and two concurrent operations: 和两个并发操作:

 O1 = Insert[0, "x"] (to insert character "x" at position "0") O2 = Delete[2, "c"] (to delete the character "c" at position "2") 

generated by two users at collaborating sites 1 and 2, respectively. 由两个用户分别在协作站点1和2生成。 Suppose the two operations are executed in the order of O1 and O2 (at site 1). 假设两个操作按O1和O2(在站点1)的顺序执行。 After executing O1, the document becomes "xabc". 执行O1后,文档变为“xabc”。 To execute O2 after O1, O2 must be transformed against O1 to become: O2' = Delete[3, "c"], whose positional parameter is incremented by one due to the insertion of one character "x" by O1. 要在O1之后执行O2,必须将O2转换为O1变为:O2'=删除[3,“c”],由于O1插入一个字符“x”,其位置参数加1。 Executing O2' on "xabc" deletes the correct character "c" and the document becomes "xab". 在“xabc”上执行O2'会删除正确的字符“c”,文档将变为“xab”。 However, if O2 is executed without transformation, it incorrectly deletes character "b" rather than "c". 但是,如果在没有转换的情况下执行O2,则会错误地删除字符“b”而不是“c”。 The basic idea of OT is to transform (or adjust) the parameters of an editing operation according to the effects of previously executed concurrent operations so that the transformed operation can achieve the correct effect and maintain document consistency . OT的基本思想是根据先前执行的并发操作的效果来转换(或调整)编辑操作的参数,使得转换的操作可以实现正确的效果并保持文档的一致性

And a very cool link implementing this: http://sharejs.org/ 这是一个非常酷的链接: http//sharejs.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM