Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在GWT标签中显示HTML实体_Java_Gwt_Uibinder - Fatal编程技术网

Java 在GWT标签中显示HTML实体

Java 在GWT标签中显示HTML实体,java,gwt,uibinder,Java,Gwt,Uibinder,在GWT中,我的代码是: rootPanel.add(new Label("© " + "2014" + " MyCorp")); 很好地显示: © 2014 MyCorp 而不是 © 2014 MyCorp 有什么提示吗?我会: rootPanel.add(new Label("© 2014 MyCorp")); 或使用: 我只想: rootPanel.add(new Label("© 2014 MyCorp")); 或使用: 你也可以试试这个:

在GWT中,我的代码是:

rootPanel.add(new Label("© " + "2014" + " MyCorp"));
很好地显示:

© 2014 MyCorp
而不是

© 2014 MyCorp
有什么提示吗?

我会:

rootPanel.add(new Label("© 2014 MyCorp"));
或使用:

我只想:

rootPanel.add(new Label("© 2014 MyCorp"));
或使用:


你也可以试试这个:

    Label label1=new Label();
    label1.getElement().setInnerHTML("© " + "2014" + " MyCorp");

你也可以试试这个:

    Label label1=new Label();
    label1.getElement().setInnerHTML("© " + "2014" + " MyCorp");