用以下方式打开temp.html面页,然后再在temp.html中调用mui.openWindow打开任意一个本地或不存在的页面会重复打开temp.html页。 经查发现是由于url带了"/"导至的。
mui.openWindow({
id: 'createArticle',
url:'temp.html?articleuploader/',
waiting: {
autoShow: false
}
});
temp.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<script src="../js/mui.min.js"></script>
<link href="../css/mui.min.css" rel="stylesheet" />
<script type="text/javascript" charset="utf-8">
</script>
</head>
<body>
<br>
<br>中华人民共和国
<button type="button" onclick="opentest();">打开</button>
</body>
<script type="text/javascript" charset="utf-8">
mui.init();
function opentest() {
alert('dddd');
mui.openWindow({
id: 'sss',
url: 'sss.html',
waiting: {
autoShow: false
}
});
};
</script>
</html>
0 个回复