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>
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 28 | 반응형웹 | 9년 전 | 4482 | ||
| 27 | 반응형웹 | 9년 전 | 7550 | ||
| 26 | 부트스트랩 |
|
10년 전 | 14822 | |
| 25 | 부트스트랩 |
|
10년 전 | 9418 | |
| 24 | 표준화 | 11년 전 | 8287 | ||
| 23 | 반응형웹 | 12년 전 | 13483 | ||
| 22 | 표준화 | 12년 전 | 9459 | ||
| 21 | 표준화 | 12년 전 | 16744 | ||
| 20 | 반응형웹 | 12년 전 | 19682 | ||
| 19 | 반응형웹 | 12년 전 | 30994 | ||
| 18 | 반응형웹 | 12년 전 | 36477 | ||
| 17 | 표준화 | 12년 전 | 12897 | ||
| 16 | 반응형웹 | 12년 전 | 29294 | ||
| 15 | 반응형웹 | 13년 전 | 11833 | ||
| 14 | 반응형웹 | 13년 전 | 31745 | ||
| 13 | 반응형웹 | 13년 전 | 29726 | ||
| 12 | 반응형웹 | 13년 전 | 39235 | ||
| 11 | 반응형웹 | 13년 전 | 50621 | ||
| 10 | 반응형웹 | 13년 전 | 32769 | ||
| 9 | 표준화 | 13년 전 | 9145 | ||
| 8 | 표준화 | 13년 전 | 11219 | ||
| 7 | 표준화 | 13년 전 | 9155 | ||
| 6 | 표준화 | 13년 전 | 11123 | ||
| 5 | 표준화 | 13년 전 | 11227 | ||
| 4 | 표준화 | 13년 전 | 14695 | ||
| 3 | 표준화 | 13년 전 | 8041 | ||
| 2 | 표준화 | 13년 전 | 10156 | ||
| 1 | 표준화 | 13년 전 | 11889 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기