会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
图样图森破
破你个头啊
博客园
首页
新随笔
联系
订阅
管理
2008年12月9日
string.Format时,字符串包含{}的问题
摘要: 如果在字符串中本身包含"{"或"}"字符,那么用"{{"来代替"{"、"}}来代替"}"就可以了。错误:string strMsg = string.Format("<script>if(confirm('保存成功!\n继续录入?')){document.location='frmPeopleFluxEdit.aspx?lngShopID={0}'}else{document.loca...
阅读全文
posted @ 2008-12-09 10:43 Daniel-Zhang
阅读(696)
评论(0)
推荐(0)
编辑