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년 전 | 2718 | ||
| 207 | AngularJS | 8년 전 | 1461 | ||
| 206 | AngularJS | 8년 전 | 1112 | ||
| 205 | AngularJS | 8년 전 | 984 | ||
| 204 | AngularJS | 8년 전 | 1386 | ||
| 203 | AngularJS | 8년 전 | 1182 | ||
| 202 | AngularJS | 8년 전 | 1499 | ||
| 201 | AngularJS | 8년 전 | 1448 | ||
| 200 | AngularJS | 8년 전 | 1420 | ||
| 199 | AngularJS | 8년 전 | 1344 | ||
| 198 | AngularJS | 8년 전 | 1225 | ||
| 197 | AngularJS | 8년 전 | 1389 | ||
| 196 | AngularJS | 8년 전 | 1043 | ||
| 195 | AngularJS | 8년 전 | 1253 | ||
| 194 | AngularJS | 8년 전 | 1267 | ||
| 193 | AngularJS | 8년 전 | 1613 | ||
| 192 | AngularJS | 8년 전 | 1359 | ||
| 191 | AngularJS | 8년 전 | 1584 | ||
| 190 | AngularJS | 8년 전 | 1549 | ||
| 189 | AngularJS | 8년 전 | 1641 | ||
| 188 | AngularJS | 8년 전 | 1395 | ||
| 187 | AngularJS | 8년 전 | 1367 | ||
| 186 | AngularJS | 8년 전 | 1399 | ||
| 185 | AngularJS | 8년 전 | 1433 | ||
| 184 | AngularJS | 8년 전 | 1476 | ||
| 183 | AngularJS | 8년 전 | 1469 | ||
| 182 | AngularJS | 8년 전 | 1008 | ||
| 181 | AngularJS | 8년 전 | 1385 | ||
| 180 | AngularJS | 8년 전 | 1276 | ||
| 179 | AngularJS | 8년 전 | 1249 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기