为什么?gwt.codesvr = 127.0.0.1:9997被追加到url? [英] why ?gwt.codesvr=127.0.0.1:9997 is appended to url?

查看:352
本文介绍了为什么?gwt.codesvr = 127.0.0.1:9997被追加到url?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ExtGWT。在开发模式下,我们将?gwt.codesvr = 127.0.0.1:9997 附加到网址。请帮助它意味着什么,为什么我们应该追加?

I am using ExtGWT. in development mode we append ?gwt.codesvr=127.0.0.1:9997 to url. please help what it means and why we should append?

谢谢!

Thanks!

推荐答案

在开发模式下运行应用程序时,浏览器(更确切地说:GWT插件)需要连接到所谓的代码服务器。 gwt.codesvr部分由该插件评估,因此它知道如何连接到该代码服务器。

When you're running your application in Development Mode, the browser (more precisely: The GWT plugin) needs to connect to a so-called "code server". The "gwt.codesvr" part is evaluated by that plugin, so it knows, how to connect to that code server.

代码服务器的工作是模拟最终代码的JavaScript行为。它运行您的客户端Java代码,该代码被编译为类文件,但尚未编译为JavaScript文件。这是a)比编译JavaScript要快得多,b)它允许你为(模拟的)客户端代码使用Java调试器。

The job of the code server is to emulate the JavaScript behaviour of the final code. It runs your client-side Java code, which is compiled to class files, but not yet to JavaScript files. This is a) a lot faster than compiling to JavaScript, and b) it allows you to use a Java debugger for the (emulated) client side code.

这篇关于为什么?gwt.codesvr = 127.0.0.1:9997被追加到url?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆