摘要: Insert title here ZIP code: City: State: 阅读全文
posted @ 2009-03-12 14:52 雨晨 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 一般从服务端的返回可以得到一个XML对象。 例如服务器返回的:XMLHttpRequest.ResponseXML 这里的XMLHttpRequest就是ajax的核心对象。 在IE下可以这样创建:xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"). javascript操作XML先创建一个XML DOM对象:var dom = new ActiveX... 阅读全文
posted @ 2009-03-12 14:51 雨晨 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 1.动态创建select function createSelect(){ var mySelect = document.createElement("select"); mySelect.id = "mySelect"; document.body.appendChild(mySelect); } 2.添加选项... 阅读全文
posted @ 2009-03-12 14:50 雨晨 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 在web开发中,经常会用getAttribute和setAttribute操作元素属性,这使得我们在实际应用中更加的方便和灵活。 getAttribute和setAttribute在非ie浏览器中都能正常工作,在ie中却并不能识别,但简单测试后,发现ie支持obj.getAttribute("className")和obj.className,为什么会这样就不太清楚,难道class在ie中有特殊... 阅读全文
posted @ 2009-03-12 09:35 雨晨 阅读(950) 评论(0) 推荐(0) 编辑