![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JS
iteye_12203
这个作者很懒,什么都没留下…
展开
-
prototype.js
js的event详解:http://www.bings.cn/html/web/js/20070405/35465_5.html2008-01-31 09:01:56 · 55 阅读 · 0 评论 -
prototype.js的使用
1.使用$()方法$()方法是在DOM中使用过于频繁的document.getElementById()方法的一个便利的简写,就像这个DOM方法一样,这个方法返回参数传入的id的那个元素。可以出入多个id作为参数然后$()返回一个带有所有要求的元素的一个Array对象。该函数也能传入对象本身。实例代码:function f(){ var button ...2008-04-21 23:10:26 · 93 阅读 · 0 评论 -
prototype.js的使用(2)
4.使用$H()函数$H()函数把一些对象转换成一个可枚举的和联合数组类似的hash对象function hash(){ var a={ first:10,second:20,third:30 }; var h = $H(a); alert(h.toQueryString());}5.使用$R()函数$R()是new ObjectRange(l...2008-04-22 22:02:06 · 127 阅读 · 0 评论 -
计算js中的字符串的字节数,汉字编码转换
无标题文档String.prototype.ulength = function () { var c, b = 0, l = this.length; while(l) { c = this.charCodeAt(--l); b += (c < 128) ? 1 : ((c <...2008-05-02 23:30:44 · 372 阅读 · 0 评论 -
ext2.1入门必备
ext2.1本文来自http://www.dojochina.com/?q=node/5471.下载地址:http://www.extjs.com/download,下载项目:a.ExtJS 2.1 SDKb.ExtJS2.1 API Documentation2.ext2.1的文档说明:需要把docs目录下的文件放置的服务器上,ext中ajax调用需要在服务器运行。3.图...2008-06-09 22:08:09 · 116 阅读 · 0 评论 -
ext2.1表格处理
简单的表格显示,ext的面向对象思想。在表格中有很好的体现,在menu中更为明显测试文件:grid.htmlext2.1 表格实例grid.js:// JavaScript Document//cm:ColumnModel表格的列模型Ext.onReady(function(){ Ext.Quic...2008-06-13 15:46:05 · 150 阅读 · 0 评论 -
html 中img标签中的图片拖拽和选中
问题描述:打开两个窗口,或者一个子窗口,或者一个浮动的div。top中包含图片,使用鼠标将top中的图片拖拽到parent中。window的history会记住这个连接。浏览器默认的允许拖拽,可以使用ondragstart="return false;"取消拖拽。例如:1,test_img2.html无标题文档 function showImg(){ ...2008-06-22 19:38:30 · 1145 阅读 · 0 评论