AmMrWu

a fish.

导航

随笔分类 -  Javascript

javascript window和document
摘要:1.window是指浏览器窗口 document是指当前的页面文档输入输出流.2.例如:window.location是当前的网址 然而 document.location是当前网页在文件中存在的位置3.window.top.document 是指当前窗口最上层框架的引用.4.常用的方法:1)window.location.href='http://www.baidu.com';页面跳转2)document.getElementById ByName ByTagName 得到DOM对象3)document.write(); 输出页面信息等4)window.history.go( 阅读全文

posted @ 2011-09-07 20:27 RorySmart 阅读(418) 评论(0) 推荐(1)

JavaScript日历
摘要:function Calender() { var str="日,一,二,三,四,五,六"; weekArray=str.split(','); var now=new Date(); this.year=now.getFullYear(); this.day=now.getDay(); this.mon... 阅读全文

posted @ 2011-06-26 12:36 RorySmart 阅读(347) 评论(0) 推荐(0)