摘要: 1.定义:再不刷新页面的情况下,动态加载网页内容。 2.XMLHttpRequest 是 AJAX 的基础。 3.AJAX点击效果 <style type="text/css"> div{ width: 300px; height: 200px; border: 1px solid red; } < 阅读全文
posted @ 2016-05-21 23:54 小渝儿 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.Date日期 --Date 对象用于处理日期和时间。 Date 对象的语法: var myDate=new Date() 2.Date 对象方法 eg: <style type="text/css"> #date{ width: 400px; height: 30px; } </style> < 阅读全文
posted @ 2016-05-21 23:50 小渝儿 阅读(149) 评论(0) 推荐(0) 编辑
摘要: <body> <div><img id="tu" src="lun1.jpg" width="800px" height="498px"></div> <input type="button" onclick="pro()" value="上一张"> <input type="button" onc 阅读全文
posted @ 2016-05-21 23:43 小渝儿 阅读(136) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css"> div{ width: 100px; height: 100px; background: green; border-radius: 50px; } </style> <body> <div id="div1" style="/position: a 阅读全文
posted @ 2016-05-21 23:32 小渝儿 阅读(127) 评论(0) 推荐(0) 编辑