<!DOCTYPE html> <html> <body> <div ng-app="" ng-init="firstName='John'"> <p>姓名为 <span ng-bind="firstName"></span></p> </div> <script src="angular-1.0.1.min.js"></script> </body> </html>angular-1.0.1.min.js的下载地址:http://download.csdn.net/detail/zl544434558/8015741
原文地址:http://blog.csdn.net/zl544434558/article/details/39928251