<!DOCTYPE html>
<html>
<head>
<Meta charset="utf-8">
<Meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
</head>
<body>
<div ng-app="" ng-init="person={firstName:'xiao',lastName:'ming'}">
<p>姓:<span ng-bind="person.firstName"></span></p>
<p>名:<span ng-bind="person.lastName"></span></p>
</div>
</body>
<script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
</html>
原文链接:/angularjs/148198.html