angular表达式
angular表达式相当于输出的意思,用"{{xxx}}"表示 (以后用的会较少)
<html class="no-js" ng-app=""> //书写前需要注意的地方
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./angular.min.js">//引入js脚本
</script>
</head>
<body ng-init="name='sang';age=24">
{{ 5*4 }}
{{ 5>4 ? "真":"假"}}
<h1>{{ name +"--"+age}}</h1>
<input type="text" name="" value="" ng-model="one">
*
<input type=text"" name="" value="" ng-model="two">
=
{{one*two}}
</body>
</html>