像 jsFiddle 或开发人员工具这样的实时编辑,但是到服务器?
我想实现一个类似 jsFiddle 的网站,但其他人可以实时看到对页面所做的更改。
最好的方法是什么?如果可能的话。我怀疑我能否获得在 Chrome 中内置的 Web 开发人员工具等内容所做的更改,并将它们发送到服务器并使用 socket.io 等更新页面。但是我可以使用任何其他开源服务来实现这一点吗?
任何提示都会很棒。
I would like to implement a jsFiddle-like site but where others can see the changes being made to the page in real time.
What would be the best way to do this? If possible. I am doubtful I can get the changes made in things like web developer tools build into chrome for example and send them to the server and update the page with like socket.io. But is there any other open source service I could use to achieve this you know about?
Any tips would be awesome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Codepen.io 与 JSFiddle 类似,有一个协作“Pro”版本,价格为 9 美元/月或 75 美元/年。看看: http://codepen.io/pro/
唯一想到的就是< a href="http://beta.etherpad.org/" rel="nofollow">http://beta.etherpad.org/ - 但这只是文本编辑的实时协作。不太像 jsFiddle。
Codepen.io is like JSFiddle, and has a collaborative "Pro" version for $9/month or $75/year. Check it out: http://codepen.io/pro/
The only other thing that comes to mind is http://beta.etherpad.org/ -- but it's just live collaboration for text editing. Not really like jsFiddle.
我不认为有像 jsfiddle 这样的服务器端版本。例如,您可以编写对服务提供商造成损害的邪恶代码。我只是想象对其他域执行 ddos 攻击、编写无限循环、将大量内容加载到内存等等。
但我仍然认为有可能在“可信环境”中创建自己的东西。
我的一位同事尝试过这个: http://coderun.com/ 但我不知道是否有一些限制这阻碍了我一开始谈到的事情。
I don't think there is a serverside version like jsfiddle. For example you could write evil code that make damage to the service provider. I just imagine execute ddos attacks to others domain, writing infinty loops, load heavy stuff to the memory and so on.
But I still think it would be possible to create something own in a "trusted enviroment".
One of my colleague have tried this one: http://coderun.com/ but I dont know if there is some limitation that block the things that I talked about in the begining.