Home >Web Front-end >JS Tutorial >ionic unordered list
1. Example background
ionic unordered list is implemented using ul-li, the content of the unordered list is assigned using AngularJS, and the style uses class="list "and class="item"
##2. Implement source code
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title>ionic之无序列表</title> <link rel="stylesheet" href="../css/ionic.css" /> <script type="text/javascript" src="../js/angular/angular.js" ></script> <script type="text/javascript" src="../js/ionic.bundle.js" ></script> <script> var app = angular.module("ulApp",["ionic"]); app.controller("ulController",function($scope){ $scope.uls = ["春季","夏季","秋季","冬季"]; }); </script> </head> <body ng-app="ulApp" ng-controller="ulController"> <p style="padding: 100px;"> <ul class="list"> <li class="item" ng-repeat="u in uls">{{u}}</li> </ul> </p> </body> </html>
3. Achieve results
## The above is the content of ionic, unordered list, and JavaScript. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!