例如:
test.html
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="node_modules/angular/angular.min.js"></script>
</head>
<body>
<!-- include:包含公共頁面,注意格式,必須採用localhost訪問 -->
<div ng-include="'1.header.html'"></div>
</body>
</html>
被引用頁面:1.header.html
<nav>
<ul>
<li>頭部導航1</li>
<li>頭部導航2</li>
<li>頭部導航3</li>
</ul>
</nav>