首页 > 代码库 > AngularJS的helloworld

AngularJS的helloworld

<!DOCTYPE html>
<html>
<body>

<div ng-app="" ng-init="firstName='John'">

<p>姓名为 <span ng-bind="firstName"></span></p>

</div>

<script src=http://www.mamicode.com/"angular-1.0.1.min.js"></script>>angular-1.0.1.min.js的下载地址:http://download.csdn.net/detail/zl544434558/8015741

AngularJS的helloworld