string中的通配format

private static final String WIKTIONARY_PAGE =
         "http://en.wiktionary.org/w/api.php?action=query&prop=revisions&titles=%s&" +
         "rvprop=content&format=json%s";


String aa = String.format(WIKTIONARY_PAGE, "===cc===", "===cc===");
 

  输出:

 

    http://en.wiktionary.org/w/api.php?action=query&prop=revisions&titles====cc===&rvprop=content&format=json===cc===

 

你可能感兴趣的:(PHP,json)