<html>
<script src="https://cdn.staticfile.net/angular.js/1.6.9/angular.min.js"></script>
<body>
<div ng-app="">
<p>在输入字段中输入一些名字,用逗号分隔它们:</p>
<input ng-model="customers" ng-list/>
<p>当包含 ng-list 指令时,您的输入将被转换为一个数组,每个名字作为数组中的一个项:</p>
<pre>{{customers}}</pre>
</div>
</body>
</html>