摘要: location位置操作,进行跳转 location.assign("http://www.baidu.com") 跳转,打开新的url 等价于,将location.href或window.location设置为一个url值 window.location="http://www.baidu.com... 阅读全文
posted @ 2014-10-13 11:48 ITCHN 阅读(808) 评论(0) 推荐(0) 编辑
摘要: history对象保存着用户上网的历史记录,从窗口被打开的那一刻算起,history是window对象的属性,因此每个浏览器窗口、每个标签页乃至每个框架,都有自 己的history对象和特定的window对象关联。history().go() history.go(0) 刷新当前页面 hi... 阅读全文
posted @ 2014-10-13 11:47 ITCHN 阅读(739) 评论(0) 推荐(0) 编辑
摘要: 通过location对象的search属性截取字符串传递过来的参数search ?item=hello&name=auto&age=25 返回url中传递的参数,以?开头function getQueryStringArgs(){ var qs=(location.search.length>0?l... 阅读全文
posted @ 2014-10-13 10:29 ITCHN 阅读(707) 评论(0) 推荐(0) 编辑