我正在页面上设置引导药丸并使用http://getbootstrap.com/javascript/#tabs-usage标准公式,但我收到function is not a valid function
错误消息。我有:
<ul class="nav nav-pills" role="pilllist" id="myPill">
<li role="presentation" class="active"><a href="#all" aria-controls="all" role="pill" data-toggle="pill">Show all</a></li>
<li role="presentation"><a href="#car" aria-controls="car" role="pill" data-toggle="pill">Cars</a></li>
</ul>
<div class="pill-content">
<div role="pillbpanel" class="pill-pane active" id="all">Sample of all</div>
<div role="pillpanel" class="pill-pane" id="car">Sample for car</div>
</div>
<script>
$(function () {
$('#myPill a:last').pill('show')
})
</script>
为什么我会收到此错误消息?