![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 76
zhdream2003
这个作者很懒,什么都没留下…
展开
-
[JavaScript] 读取地址栏参数
<script type="text/javascript">Request = {QueryString : function(item){ var svalue = location.search.match(new RegExp("[\?\&]" + item + "=([^\&]*)(\&?)","i")); return svalue原创 2009-03-26 12:57:59 · 80 阅读 · 0 评论 -
在项目中整合FCKeditor文本编辑器
(1) 先到http://www.fckeditor.net/download 下载FCKeditor_2.6rc.zip和FCKeditor-2.3.zip。将FCKeditor_2.6rc.zip解压缩,打开解压后的文件夹,将其中的fckeditor改名为FCKeditor整体复制到项目的WebRoot目录下。然后将FCKeditor-2.3.zip压缩包中\web\WEB-INF\lib\目...2009-01-22 13:16:32 · 112 阅读 · 0 评论 -
Javascript 动态地给元素添加事件,取代在元素上写onclick
attachEvent和addEventListener方法的使用一般情况下直接在元素上添加事件的写法如下: <img id=”zh_img” src=”xxx/xx.gif” onClick=”return method1 ( );” /> 而在js脚本中也可以动态为这个元素添加事件:attachEvent方法,为某一事件附加其它的处理事件。(不支持Mozilla系列)addEv...原创 2009-01-22 15:56:13 · 345 阅读 · 0 评论 -
Js中的window.parent ,window.top,window.self 代表的对象
在应用有frameset或者iframe的页面时,parent是父窗口,top是最顶级父窗口(有的窗口中套了好几层frameset或者iframe),self是当前窗口, opener是用open方法打开当前窗口的那个窗口。...原创 2009-01-22 16:05:07 · 137 阅读 · 0 评论