开源Asp.Net论坛

阿强.Net

关注研究:设计模式,.Net Framework底层框架,Asp.net,WinForm开发,开源框架;

导航

2008年12月3日

javascript获取参数

摘要: http://www.dotbbs.net/topic.aspx?id=111function getParam(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r!... 阅读全文

posted @ 2008-12-03 23:18 阿强.Net 阅读(522) 评论(0) 推荐(0) 编辑

js获取CuteEditor的值

摘要: var editwin = editor1.GetWindow();Getting the active editor documentIn order to find the active editor document, you'd write: // get the active editor documentvar editdoc = editor1.GetDocument();Getti... 阅读全文

posted @ 2008-12-03 22:55 阿强.Net 阅读(647) 评论(0) 推荐(0) 编辑

js处理ie关闭事件

摘要: 在网页中加入下列代码 <script> function window.onunload(){alert(这就是你要做的事,关闭网页之后做的!)} function window.onbeforeunload(){alert(这就是你要做的事,关闭网页之前做的!)} </script> 或者<script> function tuichu(){alert(... 阅读全文

posted @ 2008-12-03 21:50 阿强.Net 阅读(4166) 评论(0) 推荐(0) 编辑