- 博客(2)
- 收藏
- 关注
原创 获取 XMLDocument对象 和 XMLHttpRequest 对象的函数定义
获取XMLDocument对象函数定义:function getXMLDocument()...{ var xDoc=null; if(document.implementation&&document.implementation.createDocument) ...{ xDoc=document.implementation.createDocumen
2008-04-08 16:41:00
510
原创 如何绑定多个事件在 onload
onload事件在页面加载时才得到执行window.onload=firstFunction;window.onload=secondFunction;上面设置将导致secondFunction将取代firstFunction,每个事件处理函数只能绑定一条指令。解决办法如下:注明此函数由Simon Willison编写的function addLoadEvent(func)...{
2008-04-08 15:06:00
470
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人