随笔分类 - js
摘要:定义全局变量 var loop = null; 加载时候打印 window.On_CLodop_Opened = function () { print(); //OpenPreview()是调用打印方法 window.On_CLodop_Opened = null; }; function pri
阅读全文
摘要:使用OpearteResult公共类 使用session引用using System.Web.SessionState; 继承IRequiresSessionState 获取context.Session["name"].ToString(); 如果成功,那么就 return new Opearte
阅读全文
摘要:HTML <script> $(function(){ $(".pimg").click(function(){ var _this = $(this);//将当前的pimg元素作为_this传入函数 imgShow("#outerdiv", "#innerdiv", "#bigimg", _thi
阅读全文
摘要:注:需要引用jq css部分 .checkboxWrapper input[type="checkbox"] { display: none; } .checkboxWrapper input[type="checkbox"] + label { cursor: pointer; display:
阅读全文
摘要:1 history.go(0)2 location.reload()3 location=location4 location.assign(location)5 document.execCommand('Refresh')6 window.navigate(location)7 location
阅读全文
摘要:方法一、以按钮点击的方式实现:<input type="button" name="Submit" value="返回上一页" onclick="javascript:window.history.back(-1);">或者<input type="button" name="Submit" val
阅读全文
摘要:二.介绍 Ø FusionCharts 是InfoSoft Global 公司的一个产品,InfoSoft Global 公司是专业的Flash 图形方案提供商,他们还有几款其他的,基于Flash 技术的产品,都非常的漂亮。 Ø FusionCharts Free 则是FusionCharts 提供
阅读全文
摘要:在ajax中的UpdatePanel弹出对话窗,可以使用: ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "alert", "alert('更新成功!')", true); 修改后跳到另一个页面中去时,可以使用:S
阅读全文
摘要:手机号码的验证(13开头和158,159开头,共11位) var re; var ss=document.getElementById('textbox3').value; re= /^(13[0-9]{9})|(15[89][0-9]{8})$/ if(re.test(ss)) { documen
阅读全文
摘要:/* //计算字符串打印长度 */String.prototype.LengthW = function(){return this.replace(/[^\x00-\xff]/g,"**").length;}/* //是否是正确的IP地址 */String.prototype.isIP = fun
阅读全文
摘要:JS自带函数concat将两个或多个字符的文本组合起来,返回一个新的字符串。var a = "hello";var b = ",world";var c = a.concat(b);alert(c);//c = "hello,world"indexOf返回字符串中一个子串第一处出现的索引(从左到右搜
阅读全文