摘要: var qs = window.location.search.substring(1);//获得了当前链接的中?号后的参数if (qs.length > 0) { var Airways = qs.substring(qs.indexOf('=') + 1).toUpperCase();location.search的值就是 "?i=1 "substr(1) 就是从索引1开始截取所以以这个页面为例的话location.search.substring(1)的值就是 "i=1 " 阅读全文
posted @ 2013-11-14 22:07 有时 阅读(8529) 评论(0) 推荐(2) 编辑
摘要: Attributes.Add("javascript事件","javascript语句");如:this.TextBox1.Attributes.add("onblue", "window.Label1.style.backgroundColor='#000000';");this.TextBox1... 阅读全文
posted @ 2013-11-14 21:38 有时 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-11-14 21:15 有时 阅读(555) 评论(0) 推荐(0) 编辑