02 2016 档案

*.location.href 用法:
摘要:*.location.href 用法: top.location.href=”url” 在顶层页面打开url(跳出框架) self.location.href=”url” 仅在本页面打开url地址 parent.location.href=”url” 在父窗口打开Url地址 this.locatio 阅读全文

posted @ 2016-02-03 16:00 kebizhanmushi 阅读(134) 评论(0) 推荐(0)

Window.open()方法参数详解
摘要:Window.open()方法参数详解 1, 最基本的弹出窗口代码 window.open('page.html');2, 经过设置后的弹出窗口 window.open('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, 阅读全文

posted @ 2016-02-03 15:55 kebizhanmushi 阅读(191) 评论(0) 推荐(0)

获取一个字符串Hello world中world首次出现的位置
摘要:获取一个字符串Hello world中world首次出现的位置 var str=“Hello world!” document.write(str.indexOf("world")) 在控制台输出为6 阅读全文

posted @ 2016-02-03 15:47 kebizhanmushi 阅读(518) 评论(0) 推荐(0)

导航