string result = item["FContent"].ToString(); result = result.Replace(" ", " "); result = result.Replace("...
分类:
Web程序 时间:
2014-08-14 16:12:18
阅读次数:
279
昨天晚上调程序的时候在服务器上出现这种问题DataTime.Now.ToString("yyyy-MM-dd HH:mm:ss")居然出现了2014-8-14 8:nn:14:nn:22 ,本身代码是没有错误的但是数据是错误的解决方案:去控制面板---区域和语言选项-----自定义----时间---...
分类:
其他好文 时间:
2014-08-14 10:23:38
阅读次数:
201
为了让游戏前端数据输出更加条理,做了一个简单树状结构来打印数据。ccmlog.lualocal function __tostring(value, indent, vmap)
local str = ''
indent = indent or ''
vmap = vmap or {}
--递归结束条件
if (type(value) ~= 'table') ...
分类:
其他好文 时间:
2014-08-14 01:38:47
阅读次数:
272
c#用format把999999999格式化成999,999,999.00的格式 c#用format把普通数字格式化成金额的格式分享到: 更多 ------解决方案--------------------999999999.ToString("N") //==〉999,999,999.00 ...
分类:
其他好文 时间:
2014-08-13 22:10:47
阅读次数:
296
1 console.log('what');this is h1this is contentfunction foo(bar) { console.log(bar); return bar.toString();}
分类:
其他好文 时间:
2014-08-13 22:01:37
阅读次数:
181
一、Cookie设置 cookieHttpCookie cookie = new HttpCookie(name);cookie.Value = user.UserID.ToString();Response.Cookies.Add(cookie);读取cookieSystem.Web.HttpCo...
分类:
其他好文 时间:
2014-08-13 21:54:28
阅读次数:
174
1 public class ToString{ 2 public static void main(String[] args){ 3 String aa = "hellow"; 4 byte[] bb = aa.getBytes(); 5 ...
分类:
编程语言 时间:
2014-08-13 18:34:46
阅读次数:
191
function newGuid(){ var guid = ""; for (var i = 1; i <= 32; i++){ var n = Math.floor(Math.random()*16.0).toString(16); guid += n; ...
分类:
编程语言 时间:
2014-08-13 18:24:36
阅读次数:
178
class Person { private String name; private int age; public Person(String name, int age) { this.name = name; this.age = age; } public String toString....
分类:
其他好文 时间:
2014-08-13 17:49:26
阅读次数:
157
public string GeFileName(string type) { //年4+月2+日2+时2+分2+秒2+毫秒3+8位随机数 string year = DateTime.Now.Year.ToString(); string month = DateTime.Now.Month.To...
分类:
其他好文 时间:
2014-08-13 17:37:06
阅读次数:
194