但是沒有ui-btn-inactive這種設定,可以取消元素的焦點,
其實可以用removeClass來移除焦點,範例如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.5.min.css">
<title>測試</title>
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="navbar">
<ul>
<li><a href="#" id="li01">測試一</a></li>
<li><a href="#" id="li02" class="ui-btn-active">測試二</a></li>
</ul>
</div>
<input type="button" id="btn01" value="取消active"></input>
<script>
$(document).on('tap','#btn01',function() {
$('#li02').removeClass($.mobile.activeBtnClass);
});
</script>
</body>
</html>