1
表達式沒有通過在文本框中鍵入的值進行更新。模型表達式不能在角js中工作
<html>
<head>
<title>Angular Test</title>
<meta charset="UTF-8">
<script src="angular.js" type="text/javascript"> </script>
<script>
var app=angular.module("myApp",[]);
app.controller("ctrl",function($scope){
$scope.name="asdfsdf";
});
</script>
</head>
<body ng-app="myApp" ng-controller="ctrl" >
<input type="text" ng-bind="name" /> {{name}}
</body>
</html>