Bootsrap汉堡菜单Jquery

时间:2015-05-08 12:46:50

标签: jquery html css twitter-bootstrap

我已经创建了一个Bootstrap导航栏,并希望它能够在手机上显示网页时导航栏仍可正常工作。因为它当前是按钮出现但单击它时没有任何反应。我看过Code Pen(http://codepen.io/macsupport/pen/bKFzD),但他们的例子也没有用。

describe "MyCtrl test", () ->
  beforeEach module('ngRoute')
  beforeEach module('myControllers')

  $controller = undefined
  $scope = undefined
  $routeParams = undefined
  mySvc = undefined

  beforeEach inject (_$controller_, $rootScope, _$routeParams_,_mySvc_) ->
    $controller = _$controller_
    $scope = $rootScope.$new()
    mySvc = _mySvc_

  describe "MyCtrl", () ->
    beforeEach () ->
      MyCtrl = $controller('MyCtrl', {$scope:$scope,$routeParams:$routeParams,mySvc:mySvc})
    it "should be defined", () ->
      expect(MyCtrl).toBeDefined()

1 个答案:

答案 0 :(得分:0)

将这些内容包含在您网页的<head>中:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>