随笔分类 - 开发遇到的问题
摘要:public static string ConvertUnicodeStringToChinese(string unicodeString) { if (string.IsNullOrEmpty(unicodeString)) return string.Empty; string outStr = unicodeString; Regex re = new Regex("\\\\u[0123456789abcdef]{4}", RegexOptions.IgnoreCase); MatchCollection mc = re.Matches(unicodeString
阅读全文
摘要:Demo页面:主页面 iframe_a.html ,被包含页面 iframe_b.htm 和 iframe_c.html下面开始讲:通过Google搜索iframe 自适应高度,结果5W多条,搜索iframe 高度自适应,结果2W多条。我翻了前面的几十条,刨去大量的转载,有那么三五篇是原创的。而这几篇原创里面,基本上只谈到如何自适应静的东西,就是没有考虑到JS操作DOM之后,如何做动态同步的问题。...
阅读全文
摘要:1、下载MongoDB1.61文件2、解压在D:或C:,我配置时解压在D:3、重命文件夹为MongoDB4、在MongoDB文件夹下新建两个目录,Data和Logs目录,然后在Log目录下添加一个空的log.txt文件。5、运行bin目录下的命令,安装为一个windows服务格式:mongod --bind_ip 127.0.0.1 --logpath c:\MongoDB\logs\log.tx...
阅读全文
摘要:Windows Server AppFabric正式版已经发布。今天测试一下,把域环境中安装遇到的问题告诉大家,只针对缓存服务这一块,希望大家少走一些弯路。1、首先下载安装Windows Server AppFabric,地址:http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=467e5aa...
阅读全文
摘要:今天在做搜索提示的时候遇到乱码问题,解决方法如下:如果web.config文件是这样配置的 <globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN"/>如果不是utf-8编码就会遇到这样的问题。当然也可以设成gb2312编码,不过会出现乱...
阅读全文
摘要:害了花了好长的时候来发现这个问题代码:<script type="text/javascript"> function Confir(url, mess) { if (confirm(mess)) { window.location.href = url; return true; } else { return false; } }</script> <td ali...
阅读全文