<!DOCTYPE html>
<html lang="en" ng-app="myapp">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="../js/angularjs.js"></script>
    <style>
        body{
            font-size: 32px;
        }
        ul{
            list-style-type: none;
            width: 408px;
            margin:0px;
            padding: 0px;
        }
        div{
            margin:8px 0px;
        }
    </style>
</head>
<body>
    <div ng-controller="c2_ll">
        <div ng-show={{isShow}}>他是谁</div>
        <div ng-hide={{isHide}}>11111@qqq.com</div>
        <ul ng-switch on={{switch}}>
            <li ng-switch-when="1">www</li>
            <li ng-switch-when="2">www.com</li>
            <li ng-switch-default>更多。。</li>
        </ul>
    </div>
</body>
<script>
    var app=angular.module('myapp',[]);
    app.controller('c2_ll',function($scope){
        $scope.isShow=true;
        $scope.isHide=false;
        $scope.switch=3;
    })
</script>
</html>

 

相关文章:

  • 2022-12-23
  • 2021-12-18
  • 2021-09-21
  • 2022-12-23
  • 2021-06-14
  • 2021-10-23
  • 2022-02-16
猜你喜欢
  • 2021-07-28
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
相关资源
相似解决方案