导航

2011年2月17日

摘要: <script type="text/javascript">function Format(str, json){return str.replace(/{(\d)}/g, function(a, key) {return json[key];});}</script><script type="text/javascript">document.write(Format("{0}是{1}的{2}",["这句话","测试","结果"]));</script> 阅读全文

posted @ 2011-02-17 17:02 夹心刺猬 阅读(202) 评论(0) 推荐(0)

摘要: <!--列表页--><script type="text/javascript">  <!--显示操作页面--> function DetailShow(linkUrl) { var iframeDetails = document.getElementById("iframeDetails"); iframeDetails.src = linkUrl; var divIframeControl = document.getElementById("divIframeControl"); divIframeControl.style.display = "b 阅读全文

posted @ 2011-02-17 16:50 夹心刺猬 阅读(514) 评论(0) 推荐(0)

摘要: //获取客户端提交的 选中 CheckBox(只留数字)public string GetRetIds() { string itemIds = System.Text.RegularExpressions.Regex.Replace(System.Text.RegularExpressions.Regex.Replace(Request.Form["cboItem"], "[^0-9,]", "", System.Text.RegularExpressions.RegexOptions.IgnoreCase), @",+", ",", System.Text.RegularExpressio 阅读全文

posted @ 2011-02-17 16:35 夹心刺猬 阅读(140) 评论(0) 推荐(0)