浏览代码

添加一个iframe测试

tik5213 9 年之前
父节点
当前提交
deda0e03d6
共有 2 个文件被更改,包括 13 次插入0 次删除
  1. 2 0
      general-web-server/web/html/myindex.html
  2. 11 0
      general-web-server/web/withiframe.html

+ 2 - 0
general-web-server/web/html/myindex.html

@ -36,6 +36,8 @@
36 36
			btn.onclick = function(){
37 37
				WadeMobile.getImei(function(result){
38 38
					alert("手机IMEI号为:" + result);
39
				},function(msg){
40
					alert("我是异常处理函数,来自android的异常信息为:" + msg)
39 41
				});
40 42
			}
41 43
		</script>

+ 11 - 0
general-web-server/web/withiframe.html

@ -0,0 +1,11 @@
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<html>
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>Insert title here</title>
6
</head>
7
<body>
8
<h1>下面是iframe的内容</h1>
9
<iframe src="myindex.html" style="width: 300px;height: 500px;"></iframe>
10
</body>
11
</html>