摘要:
addEvent(window,'load',function(){ var fm=document.getElementById('myForm'); var user=fm.elements['user']; var content=fm.elements['content']; addEven 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>9:42</title> <script> //跨浏览器添加事件 function addEvent(obj,type,fn){ if(obj.addEvent 阅读全文
摘要:
value 的获取 <form id="myForm" name="yourForm">姓名:<input type="text" name="user" value="123"/><textarea name="content">textarea</textarea></form> addEven 阅读全文