javascript
文章平均质量分 84
xuanchy
这个作者很懒,什么都没留下…
展开
-
Ajax.Request方法
Ajax.Request方法Ajax.Request(url,{method:method,parameters:para,postBody:xmlString,asynchronous:true,setRequestHeader:Object,onComplete:completeFun,onError:errorFun})发送异步请求。(此方法是为兼容 prototype.js ...原创 2012-08-17 21:25:08 · 116 阅读 · 0 评论 -
js文档属性与事件大全
对象属性document.title //设置文档标题等价于HTML的<title>标签document.bgColor //设置页面背景色document.fgColor //设置前景色(文本颜色)document.linkColor //未点击过的链接颜色document.al...原创 2012-08-19 17:43:25 · 103 阅读 · 0 评论 -
js常用函数属性事件集
1.document.write(""); 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document->html->(head,body)4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document)5.得到表单中元素的名称和值:document.getElementById(...原创 2012-08-19 17:45:39 · 93 阅读 · 0 评论 -
js操作table
var stable = document.getElementById('stable'); 添加\删除行stable.insertRow();stable.deleteRow(rowIndex); 添加\删除列stable.rows[rowIndex].insertCell();stable.rows[rowIndex].deleteCell(cellInd...原创 2012-08-30 18:00:30 · 129 阅读 · 0 评论 -
js操作select
//已经选中的(accList是select的id)var id = document.all.accList.selectedIndex;var values = document.all.accList.options[id].value;var accid = document.all.accList.options[id].text; //动态新增(删除)opti...原创 2012-09-13 10:05:13 · 121 阅读 · 0 评论