FRONT_END 9

javascript_생성자 함수

생성자함수 개요 객체 생성하기 function Student(name,korean){ this.이름 = name; this.국어 = korean; this.getSun = function () { return this.국어 + ...; } } var student = new Student('박종훈',100); 객체 배열 function Student(name,korean){ this.이름 = name; this.국어 = korean; this.getSun = function () { return this.국어 + ...; } } var students = []; student.push(new Student('박종훈',100); student.push(new Student('김종훈',100); 프로토타입 ..

FRONT_END 2017.10.29

AngularJS_$scope

directives - 확장된 HTMLscope - controller에 의해 model이 저장된 contextdata binding - model과 view의 동기화 expression - 변수 접근, scope로부터의 함수?service - view와 독립된 재사용 가능한 비즈니스 로직dependency Injection - 오브젝트나 함수를 생성한다?비즈니스로직? $scope의 사용법 {{message}} {{message}} app.controller('simpleCtrl', function ($scope) { $scope.message = "Hello Angular!~"; }); app.controller('goodCtrl', function ($scope) { $scope.message = '..

FRONT_END 2017.09.19