1 Star 0 Fork 1

rookey / win10-ui

forked from ylmzfun / win10-ui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
child.html 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
尤里2号 提交于 2017-08-16 10:14 . v1.1.2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>子页测试</title>
<script src="./js/jquery-2.2.4.min.js"></script>
<script src="./js/win10.child.js"></script>
<style>
.btn{
margin: 20px;
width: 160px;
height: 40px;
line-height: 40px;
font-size: 16px;
color: white;
background-color: #2D93CA;
border-radius: 3px;
transition: all 0.5s;
cursor: pointer;
text-align: center;
}
.btn:hover{
background-color: #256d95;
}
</style>
<script>
function f1() {
Win10_child.newMsg('子页的问候','这是从iframe页调用APi发送的消息哦');
}
function f2() {
Win10_child.openUrl('http://win10ui.yuri2.cn','<img class=\'icon\' src=\'./img/icon/win10.png\'/>Win10-UI官网')
}
function f3() {
Win10_child.close();
}
</script>
</head>
<body>
<div class="btn" onclick="f1()">子页给父页发消息</div>
<div class="btn" onclick="f2()">子页打开子窗口</div>
<div class="btn" onclick="f3()">关闭子页</div>
</body>
</html>
JavaScript
1
https://gitee.com/rookey/win10-ui.git
git@gitee.com:rookey/win10-ui.git
rookey
win10-ui
win10-ui
master

搜索帮助