开发者

GWT overlay types accesing keywords

开发者 https://www.devze.com 2023-01-09 17:50 出处:网络
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.

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

精彩评论

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