开发者

GWT overlay types accesing keywords

The following code is not working because "default" seems to be a JavaScript keyword. Is there an easy way of fixing this? I want to av开发者_高级运维oid to change the name on the server side.

    public final native boolean getDefault() /*-{
    return this.default;
}-*/;

Thanks in advance

kukudas


Use array access instead of variable access:

return this['default'];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜