会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
sadly
博客园
首页
新随笔
联系
订阅
管理
2014年12月23日
MessageFormat.format处理单引号和大括号
摘要: 在MessageFormat.format方法中组装jason数据字符串:{code:"w1",des:"w2"},起止分别有左大括号和右大括号。方法是将单引号把大括号包含起来。如下: String responseTemplate = "'{'code:\"{0}\",des:\"{1}\"'}...
阅读全文
posted @ 2014-12-23 11:41 sadly
阅读(2882)
评论(0)
推荐(0)
编辑
公告