Browse Source

添加一个iframe测试

tik5213 9 years ago
parent
commit
deda0e03d6
2 changed files with 13 additions and 0 deletions
  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
			btn.onclick = function(){
36
			btn.onclick = function(){
37
				WadeMobile.getImei(function(result){
37
				WadeMobile.getImei(function(result){
38
					alert("手机IMEI号为:" + result);
38
					alert("手机IMEI号为:" + result);
39
				},function(msg){
40
					alert("我是异常处理函数,来自android的异常信息为:" + msg)
39
				});
41
				});
40
			}
42
			}
41
		</script>
43
		</script>

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

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>