prototype.js常用函数:
函数名 Element.toggle Element.hide Element.show Element.remove Element.getHeight Toggle.display Insertion.Before Insertion.After Insertion.Top Insertion.Bottom PeriodicalExecuter
$ Field.clear Field.focus Field.present Field.select Field.activate Form.serialize Form.getElements Form.disable
解释 交替隐藏或显示
隐藏 显示 删除 取得高度
和Element.toggle相同 在DIV前插入文字 在DIV后插入文字 在DIV里最前插入文字 在DIV里最后插入文字 以给定频率调用一段JavaScript 取得一个DIV, 相当于getElementById()
清空一个输入框 把 焦点集中在输入框上 判断内容是否为空 选择输入框的内容
把 焦点集中在输入框上并选择输入框的内容
把表格内容转化成string 取得表格内容为数组形式 disable表格所有内容
举例
Element.toggle(''div1'',''div2'') Element.hide(''div1'',''div2'') Element.show(''div1'',''div2'') Element.remove(''div1'',''div2'') Element.getHeight(''div1'') Toggle.display(''div1'',''div2'') Insertion.Before(''div1'',''my content'') Insertion.After(''div1'',''my content'') Insertion.Top(''div1'',''this is a text'') Insertion.Bottom(''div1'',''this is a text'')
PeridicalExecutor(test, 1)"这里test是Javascript的函数,1是频率(1
秒). $(''div1'')
Field.clear(''textfield1'') Field.focus(''select1'')
alert(Field.present(''textfield1''))"
Field.select(''textfield1'')" Field.activate(''textfield1'')"
Form.disable(''form1'') (这个好象不work)
喜欢此文档的还喜欢 js常用函数 19页 免费 js常用函数属性集 4页 免费 基础的prototype.js常用函... 2页 免费 JS函数大全 10页 免费 JS语法字典 4页 免费...
js常用函数_IT认证_资格考试/认证_教育专区。JavaScript 的常用函数简介...String.prototype.IsColor = function() { var temp = this; if (temp==""...
常用js函数_电脑基础知识_IT/计算机_专业资料。是程序开发人员的帮助,涉及很多...String.prototype.Trim = function() { return this.replace(/(^\s*)(\s...
一些常用JS函数_专业资料。常用JS函数 <!-- function newWindow(strUrl, strName... } // create the prototype on the String object String.prototype.trim =...
常用JS验证函数 * QQ:12165743 * Email:wqb7156@163.com * Date:2007-06-...(this)) return true; return false; } //验证网址 String.prototype....
JS常用函数 40页 免费js常用函数属性集 暂无评价0人阅读0次下载举报文档 js常用函数属性...
JS常用必备函数 3页 免费 js常用100个函数 4页 免费 喜欢此文档的还喜欢 ...---*/ /** * 这个函数就 Ruby 了。我觉得它的作用主要有两个 * 1. 大概...
js中常用函数_IT/计算机_专业资料。js中常用函数window.close();关闭窗口 window.location="www.sohuo.com"; alert("sdfsadfsadf");消息窗口 window.back();...
Extjs常用函数_英语学习_外语学习_教育专区 暂无评价0人阅读0次下载举报文档 Extjs常用函数_英语学习_外语学习_教育专区。 Ext.util.Observable:一个抽象基类,...
热门文档