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

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

问题描述

我正在使用 ExtGWT.在开发模式下,我们将 ?gwt.codesvr=127.0.0.1:9997 附加到 url.请帮助说明它的含义以及我们为什么要附加?

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?

谢谢!

推荐答案

当您在开发模式下运行应用程序时,浏览器(更准确地说: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天全站免登陆