AngularJS之data binding 发表于 2015-12-01 | 分类于 web前端 , Javascript Author: ChinSyun PangWeibo: arthinking_plusPosted in: http://www.itzhai.com Hello World123456789101112<!DOCTYPE html><!-- ng-app 声明所有被它包含的元素都属于AngularJS 应用 --><html ng-app> <head> <title>Simple app</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script> </head> <body> <input ng-model="name" type="text" placeholder="Your name"> <h1>Hello {{ name | number:2 }}</h1> </body></html>