摘要:alert("2014-03-22".replace('-',''));alert("2014-03-22".replace(/-/g,''));第一个运行的结果"201403-22"这个只是替换了第一个"-"第二个运行的结果"20140322" 这个能实现js的全部替换功能其实第二个的意思就是用正则表达式实现全局的替换 g 代表 gobal
阅读全文
posted @ 2014-03-22 21:01
|
||
03 2014 档案
摘要:alert("2014-03-22".replace('-',''));alert("2014-03-22".replace(/-/g,''));第一个运行的结果"201403-22"这个只是替换了第一个"-"第二个运行的结果"20140322" 这个能实现js的全部替换功能其实第二个的意思就是用正则表达式实现全局的替换 g 代表 gobal
阅读全文
posted @ 2014-03-22 21:01
摘要:Safari浏览器不支持将非ASCII字符存入Cookie,所以中文在保存的时候就会出问题,分号(";")也不能存在Cookie中,所以需要通过方法去除内容中的分号,在Cookie保存非ASCII字符的时候需要通过UrlEncode / UrlDecode方法来编码和解码问题解决Response.Cookies["UserName"].Value = System.Web.HttpUtility.UrlEncode("张波");string UserName = System.Web.HttpUtility.UrlDecode(Res
阅读全文
posted @ 2014-03-19 11:17
摘要:1. 在x64的机子上使用了错误版本的System.Data.SQLite.dll,即x86,需要安装合适版本的System.Data.SQLite.dll,现给出各种找到的下载地址(不保证有效果,毕竟这问题也不是全都相同的):1)http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki2)http://sourceforge.net/projects/sqlite-dotnet2/files/3)安装完后在D:\Program Files (x86)\SQLite.NET\bin\x64(我的程序安装在D盘)这
阅读全文
posted @ 2014-03-18 22:21
摘要:需要在两个地方设置 //Adding a numeric value to "A2" cell string a = "100"; worksheet.Cells["A2"].PutValue(a, true); --①主要是这个,增加一个参数,一般不会用到 //Getting the Style of the A2 Cell style = worksheet.Cells["A2"].GetStyle(); //Setting the display form...
阅读全文
posted @ 2014-03-18 14:59
|
||