Message.showMessage("Hello RunJS! 我是郟高陽");
};
function showNotify(){
Message.showNotify("這是一個2秒鐘隱藏的通知",2000);
}
function showConfirm(){
Message.showConfirm("你是郟高陽嗎?","是","不是",function(){
Message.showMessage("點擊了:是");
},function(){
Message.showMessage("點擊了:不是");
});
}
////////////////////
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RunJS</title>
<script id="jquery_183" type="text/javascript" class="library" src="/js/sandbox/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="jquery-1.11.0.js"></script>
</script>
<script type="text/javascript" src="http://sandbox.runjs.cn/uploads/rs/457/xronimgj/AlertMessage-1.3.js"></script>
</head>
<body>
<h2 style = "color:red">
您只需要一個小小的JS就可以完成以下功能,移動 IOS7彈出提示
</h2>
<button onclick="javascript:showMessage();">Alert提示</button>
<button onclick="javascript:showNotify();">Notify通知</button>
<button onclick="javascript:showConfirm();">Confirm確認框</button>
</body>
</html>