摘要: .创建XMLHttpRequest对象 var xmhttp; if(windows.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } //ie5或 ie6 创建.向服务器发送请求 xmlhttp.open("GET","test.txt",true);//open(method,url,async) method:请求的类型(GET或POST) url:文件在服务器上的位 阅读全文
posted @ 2011-04-15 21:15 bert.zeng 阅读(134) 评论(0) 推荐(0)
摘要: 外部样式表: <head> <link rel="stylesheet" type="text/css" href="mystyle.css"> </head> 内部样式表: <head> <style type="text/css"> body {background-color: red} p {margin-left: 20px} </style> </head> 内联样式: <p style="color: 阅读全文
posted @ 2011-04-15 21:12 bert.zeng 阅读(371) 评论(0) 推荐(0)
摘要: 1.分行; (可不写)2.顺序执行3. 注释 单行:// 多行: /* ... */<script type="text/javascript">document.write("<h1>This is a header</h1>");document.write("<p>This is a paragraph</p>");//document.write("<p>This is another paragraph</p>"); &l 阅读全文
posted @ 2011-04-15 21:11 bert.zeng 阅读(130) 评论(0) 推荐(0)