摘要: 恢复内容开始 一、先来看一个简单的例子: 下面以三个页面分别命名为frame.html、top.html、bottom.html为例来具体说明如何做。 frame.html 由上(top.html)下(bottom.html)两个页面组成,代码如下: 详细出处参考:http://www.jb51.n 阅读全文
posted @ 2016-05-03 22:32 孤舟残月浅笑嫣然 阅读(914) 评论(0) 推荐(0) 编辑
摘要: "window.location.href"、"location.href"是本页面跳转 "parent.location.href"是上一层页面跳转 "top.location.href"是最外层的页面跳转 举例说明: 如果A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是 阅读全文
posted @ 2016-05-03 22:30 孤舟残月浅笑嫣然 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 第一步、添加js方法 function check(e) { var re = /^\d+(?=\.{0,1}\d+$|$)/ if (e.value != "") { if (!re.test(e.value)) { alert("请输入正确的数字"); e.value = ""; e.focus 阅读全文
posted @ 2016-05-03 22:28 孤舟残月浅笑嫣然 阅读(249) 评论(0) 推荐(0) 编辑