码迷,mamicode.com
首页 > Web开发 > 详细

Angular JS 为什么没有输出啊

时间:2017-03-04 20:57:49      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:lang   $scope   utf-8   set   输出   ng-model   页面   ext   meta   

<!DOCTYPE html>
<html na-app>
<head lang="en">
<meta charset="UTF-8">
<title>an5-绑定页面元素</title>
<script src="js/angular.min.js" type="text/javascript"></script>
</head>
<body>
<h3>请在下面文本框中输入任意内容</h3>
<div ng-controller="userc" >


<input id="Text1" type="text" ng-model="user.name" >
<p>{{user.name}}</p>



</div>

<script>
function userc($scope){
$scope.user= {name:""};
}
</script>


</body>
</html>

Angular JS 为什么没有输出啊

标签:lang   $scope   utf-8   set   输出   ng-model   页面   ext   meta   

原文地址:http://www.cnblogs.com/mx2036/p/6502569.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!