有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

smartGWT中的行分隔符的java等价物?

是否有一个等效的或替代的

System.getProperty("line.separator");

它给出了以下错误

类型系统中的方法getProperty(String,String)不适用于参数(String)


共 (1) 个答案

  1. # 1 楼答案

    我认为您需要在服务器端代码中执行System.getProperty("line.separator"),并使用RPC或任何其他服务器端gwt通信技术访问它

    勾选GWT JRE Emulation

    GWT includes a library that emulates a subset of the Java runtime library. The list below shows the set of JRE packages, types and methods that GWT can translate automatically. Note that in some cases, only a subset of methods is supported for a given type.

    System

    err, out
    System(), arraycopy(Object, int, Object, int, int), currentTimeMillis(), gc(), getProperty(String, String), identityHashCode(Object), setErr(PrintStream), setOut(PrintStream)