摘要:
AJAX = 异步 JavaScript 及 XML(Asynchronous JavaScript and XML)1,Ajax使用http请求。2,Ajax使用XMLHttpRequest对象。3,声明一个保存AJAX对象的变量:xmlHttp代码xmlhttprequest对象的属性:1,readyState属性: 保存有服务器响应状态的信息。每当readyState状态改变时就触发onreadystatechange事件。 readyState的值: 0:请求未被初始化(在调用open()之前) 1,请求已经提出(调用send()之前) 2:请求已经发送(这里通 阅读全文
摘要:
1,对象操作语句: 1,For……in语句: Function fun1(Object) { for(var prop in Object) { document.write(Object[prop]); } } 2,with语句: with Object{ }所有with后面花括号内都... 阅读全文