angular

1.引入

<script src="https://cdn.staticfile.org/angular.js/1.4.6/angular.min.js"></script>

ng-init:初始化数据

<div ng-app='' ng-init='a=2;b=5;quantity="许嵩";cost="Vae";arr=[1,2,3,4,5]'>
        <p>{{a+b}}</p>
        <p>{{quantity +''+cost}}</p>
        <span ng-bind='arr[3]'></span>
    </div>

  

原文地址:https://www.cnblogs.com/VaeVae/p/10601710.html