代码语言:javascript复制
<!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/jquery-3.1.1.min.js"></script>
<script src="js/mui.min.js"></script>
<link href="css/mui.min.css" rel="stylesheet"/>
<script type="text/javascript" charset="utf-8">
mui.init();
</script>
</head>
<body>
<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">hello</h1>
</header>
<div class="mui-content">
<!--获取滑块值-->
<div class="mui-input-row mui-input-range">
<label>Range</label>
<input type="range" min="0" max="100" id="rangel">
</div>
<div class="mui-input-row mui-input-range">
<label>Range</label>
<input type="range" min="0" max="100" id="range2">
</div>
</div>
</body>
<script type="text/javascript">
$("#range1").bind('input porpertychange',function(){
//逻辑部分
console.log('rangel:' $(this).val());
});
$("#range2").bind('input porpertychange',function(){
//逻辑部分
console.log('range2:' $(this).val());
});
</script>
</html>