<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Case</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="jquery.noty.packaged.js"></script>
</head>
<body>
<div class="container">
<!-- Nav tabs -->
<ul id="mytabs" class="nav nav-tabs" role="tablist">
<li class="active">
<a href="#first" role="tab" data-toggle="tab">
<i class="fa fa-home"></i> First tab
</a>
</li>
<li class="disabled disabledTab second" ><a href="#second" role="tab" data-toggle="tab">
<i class="fa fa-user"></i> Second tab
</a>
</li>
<li>
<a href="#third" role="tab" data-toggle="tab">
<i class="fa fa-envelope"></i> Third tab
</a>
</li>
<li>
<a href="#fourth" role="tab" data-toggle="tab">
<i class="fa fa-envelope"></i> Fourth tab
</a>
</li>
<li>
<a href="#fourth" role="tab" data-toggle="tab">
<i class="fa fa-envelope"></i> Fifth tab
</a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane fade active in " id="first">
<h2>First tab</h2>
</div>
<div class="tab-pane fade disabled" id="second">
<a href="javascript:show_create_case_msg();">
<h2>Second tab</h2>
</div>
<div class="tab-pane fade" id="third">
<h2>Third tab</h2>
</div>
<div class="tab-pane fade" id="fourth">
<h2>Fourth tab</h2>
</div>
<div class="tab-pane fade" id="fifth">
<h2>Fifth tab</h2>
</div>
</div>
</div>
</body>
</html>
答案 0 :(得分:3)
在我看来,无论您使用的是什么,都无法识别您正在使用的新关键字。
如果您还没有,请使用以下命令启用它们:
use 5.010; # or higher
# or
use feature 'switch';
此外,在较新的Perl版本中,您需要说
no warnings 'experimental::smartmatch';
因为您隐式使用smartmatch,并且计划在未来的Perl版本中更改工作方式。