look.html 1.92 KB
<html ng-app="myApp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>无标题</title>
    <link href="../directive/style.css" rel="stylesheet">
    <link rel="stylesheet" href="http://xn-static.oss-cn-hangzhou.aliyuncs.com/css/xn-bootstrap/1.0.1/bootstrap.min.css">
    <link rel="stylesheet" href="../spm_modules/xn-style-common/2.0.2/xn-style-common.less">
    <link rel="stylesheet" href="../spm_modules/xn-icon-common/1.0.5/iconfont.css">
    <style>
        .xn-text-right{
            text-align: right;
        }
    </style>
</head>
<body ng-controller="MyController">

{{"1+1"}}

{{vm.name}}
<input type="text" ng-model="vm.name" >

<div ng-report=" "></div>

<ul>
    <li ng-repeat="phone in phones">
        {{phone.name}}
        <p>{{phone.snippet}}</p>
    </li>
</ul>


</body>



<script type="text/javascript" src="../spm_modules/jquery/1.7.2/jquery.js"></script>
<script type="text/javascript" src="../spm_modules/xn-angular/1.0.0/angular.js"></script>
<script type="text/javascript" src="../spm_modules/angular-ui/1.2.0/bootstraptpls.js"></script>
<script type="text/javascript" src="../directive/selects.js"></script>
<script type="text/javascript">
        angular.module("myApp", ["xn.directive.select"])
        .controller("MyController", ["$scope","$timeout","$sce", function($scope,$timeout,$sce){
            $scope.vm={
                name:"zhangsan"
            }
            $scope.phones = [
                {"name": "Nexus S",
                    "snippet": "Fast just got faster with Nexus S."},
                {"name": "Motorola XOOM™ with Wi-Fi",
                    "snippet": "The Next, Next Generation tablet."},
                {"name": "MOTOROLA XOOM™",
                    "snippet": "The Next, Next Generation tablet."}
            ];
            $timeout(function () {
                console.log(1111111111111111111111111)
            },3000)
        }]);
</script>
</html>