angular.isNumber () 참조가 숫자 인 경우 참을 리턴합니다.
AngularJS API
angular.isNumber () 참조가 숫자 인 경우 참을 리턴합니다.
예
<div ng-app="myApp" ng-controller="myCtrl">
<p>{{ x1 }}</p>
<p>{{ x2 }}</p>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.x1 = "JOHN";
$scope.x2 = angular.isNumber($scope.x1);
});
</script>
[전체소스]
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
<p>{{ x1 }}</p>
<p>{{ x2 }}</p>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.x1 = "JOHN";
$scope.x2 = angular.isNumber($scope.x1);
});
</script>
</body>
</html>
angular.isNumber () 참조가 숫자 인 경우 참을 리턴합니다.
예
<div ng-app="myApp" ng-controller="myCtrl">
<p>{{ x1 }}</p>
<p>{{ x2 }}</p>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.x1 = "JOHN";
$scope.x2 = angular.isNumber($scope.x1);
});
</script>
[전체소스]
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
<p>{{ x1 }}</p>
<p>{{ x2 }}</p>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.x1 = "JOHN";
$scope.x2 = angular.isNumber($scope.x1);
});
</script>
</body>
</html>
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 208 | 부트스트랩 | 8년 전 | 2735 | ||
| 207 | AngularJS | 8년 전 | 1480 | ||
| 206 | AngularJS | 8년 전 | 1128 | ||
| 205 | AngularJS | 8년 전 | 994 | ||
| 204 | AngularJS | 8년 전 | 1399 | ||
| 203 | AngularJS | 8년 전 | 1198 | ||
| 202 | AngularJS | 8년 전 | 1510 | ||
| 201 | AngularJS | 8년 전 | 1460 | ||
| 200 | AngularJS | 8년 전 | 1433 | ||
| 199 | AngularJS | 8년 전 | 1357 | ||
| 198 | AngularJS | 8년 전 | 1240 | ||
| 197 | AngularJS | 8년 전 | 1401 | ||
| 196 | AngularJS | 8년 전 | 1059 | ||
| 195 | AngularJS | 8년 전 | 1266 | ||
| 194 | AngularJS | 8년 전 | 1275 | ||
| 193 | AngularJS | 8년 전 | 1622 | ||
| 192 | AngularJS | 8년 전 | 1367 | ||
| 191 | AngularJS | 8년 전 | 1594 | ||
| 190 | AngularJS | 8년 전 | 1565 | ||
| 189 | AngularJS | 8년 전 | 1654 | ||
| 188 | AngularJS | 8년 전 | 1414 | ||
| 187 | AngularJS | 8년 전 | 1376 | ||
| 186 | AngularJS | 8년 전 | 1422 | ||
| 185 | AngularJS | 8년 전 | 1453 | ||
| 184 | AngularJS | 8년 전 | 1493 | ||
| 183 | AngularJS | 8년 전 | 1489 | ||
| 182 | AngularJS | 8년 전 | 1015 | ||
| 181 | AngularJS | 8년 전 | 1397 | ||
| 180 | AngularJS | 8년 전 | 1288 | ||
| 179 | AngularJS | 8년 전 | 1264 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기