11 2009 档案

摘要:1、清空select项Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->varddl=ddlGameAreas;varlen=ddl.options.length;for(vari=0;i<len;i++){try{ddl.options.remove(0);//IE}catch(e){ddl.remove(0);//FF}}2、添加select项Code highlighting produced by Actipro CodeHigh 阅读全文
posted @ 2009-11-13 16:02 陈 锋 阅读(233) 评论(0) 推荐(1)
摘要:System.Guid.ToString() 默认的输出方式是带 - (连字符)的,如果希望是单纯数字(16进制)呢?直观方法当然是 Replace 了,事实上 Guid 内置支持格式化: Guid.ToString方法(String) publicstringToString( stringformat ) 参数 format 一个单格式说明符,它指示如何格式化此Guid的值。format参数可以是“N”、“D”、“B”或“P”。如果format为空引用(在VisualBasic中为Nothing)或空字符串(""),则使用“D”。 返回值 此Guid值的String表示 阅读全文
posted @ 2009-11-12 13:42 陈 锋 阅读(3265) 评论(0) 推荐(1)