如何使⽤angularjs实现⽂本框设置值<!DOCTYPE html>
<html ng-app="myApp">
<head>
<title>angularjs-setValue</title>
</head>
<body ng-controller="body">
<input type="text" name="input1" ng-model="input1"><br />
<input type="text" name="input2" ng-model="input2"><br />
angular和angularjs
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript">
var myApp = dule('myApp',[]);
$scope.input1 = "aaaa";
$scope.input2 = "bbbb";
});
</script>
</body>
</html>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。