AngularJS 시작

JAVA/AngularJS 2016. 1. 28. 13:39

<%@ page language="java" contentType="text/html; charset=EUC-KR"

    pageEncoding="EUC-KR"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>Insert title here</title>

</head>

<body>


<div ng-app="">

  <p>Name : <input type="text" ng-model="name">

  <h1>Hello {{name}}</h1>

  <p ng-bind='name'></p>

</div>

</body>

</html>



1. 앵귤러JS사용 하려면 스크립트경로를 추가해줘야된다.

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>


2,NG-APP은 <DIV> 요소는 AngularJS 응용 프로그램의 "소유자"입니다 AngularJS을 알려줍니다.


NG-MODEL은 애플리케이션 변수 이름 입력 필드의 값을 결합한다.


NG-BIND 지시문은 응용 프로그램 변수 이름에 <P> 요소의 innerHTML을 결합한다.



출력결과


input에 123을 작성하게 되면


{{name}}에 123이 입력되고


동시에 바인드된 <p>태그에서도 123이 작성된다.




블로그 이미지

왕왕왕왕

,

select grantee, table_name, grantor, privilege from user_tab_privs where table_name ='TB_SK03_011';

블로그 이미지

왕왕왕왕

,



'윈도우' 카테고리의 다른 글

윈도우 윈도우 리부팅,시스템종료 로그확인법  (0) 2015.11.30
블로그 이미지

왕왕왕왕

,

select * from all_tab_columns where column_name like '컬럼명';

블로그 이미지

왕왕왕왕

,

C# 스택오버플로우

C#' 2015. 12. 16. 19:43


using System;

using System.Threading;


class MainClass

{

    public static void Main()

    {

        try

        {

            Recursive();

        }

        catch (StackOverflowException)

        {

            Console.WriteLine("The CLR is out of stack space.");

        }

    }


    public static void Recursive()//무한재귀로 스택오버플로우

    {

        

        Recursive();

    }

}

'C#'' 카테고리의 다른 글

C# BinarySearch  (0) 2015.12.16
C# Array 리드 온리  (0) 2015.12.16
C# function  (0) 2015.11.07
C# DLL파일 만들기 와 만드는 이유  (0) 2015.11.06
C# 참조자복사  (0) 2015.11.06
블로그 이미지

왕왕왕왕

,

C# BinarySearch

C#' 2015. 12. 16. 17:05

using System;

using System.Collections.ObjectModel;





namespace ConsoleApplication5

{

    class Program

    {

        static void Main(string[] args)

        {

            int[] intArray = { 5, 2, 3, 1, 6, 9, 7, 14, 25 };

             Array.Sort(intArray);


            int index = Array.BinarySearch(intArray,5);

            Console.WriteLine("Array.BinarySearch(intArray, 5) = " + index);

            Console.ReadKey();

        }

    }

}



'C#'' 카테고리의 다른 글

C# 스택오버플로우  (0) 2015.12.16
C# Array 리드 온리  (0) 2015.12.16
C# function  (0) 2015.11.07
C# DLL파일 만들기 와 만드는 이유  (0) 2015.11.06
C# 참조자복사  (0) 2015.11.06
블로그 이미지

왕왕왕왕

,

C# Array 리드 온리

C#' 2015. 12. 16. 16:14

using System;

using System.Collections.ObjectModel;





namespace ConsoleApplication5

{

    class Program

    {

        static void Main(string[] args)

        {

            int[] zArray = { 1, 2, 3, 4 };

            zArray[1] = 10;


            ReadOnlyCollection<int> roArray = Array.AsReadOnly(zArray);

            foreach (int number in roArray)

            {

                Console.WriteLine(number);

            }

            roArray[1] = 2; // compile error

읽기전용이기 때문에 당연히 할당할 수 없다 쓰기는 못하는거니까 

            Console.ReadKey();

        }

    }

}



'C#'' 카테고리의 다른 글

C# 스택오버플로우  (0) 2015.12.16
C# BinarySearch  (0) 2015.12.16
C# function  (0) 2015.11.07
C# DLL파일 만들기 와 만드는 이유  (0) 2015.11.06
C# 참조자복사  (0) 2015.11.06
블로그 이미지

왕왕왕왕

,


※ Oracle SID 확인
SQL> select instance from v$thread;

※ Oracle DB_NAME 확인
SQL> select name from v$database;

※ Oracle User 확인
SQL> select * from all_users;

※ 등록된 User 목록 보기
SQL> select username, user_id from dba_users order by username;

※ User가 소유한 모든 테이블 보기
SQL> select table_name from user_tables;

※ 사용자 정보 확인
SQL> select username, default_tablespace,temporary_tablespace from dba_users;

※ 오브젝트 조회
SQL> select * from all_objects where object_name like '명';

※ 테이블 조회
SQL> select * from all_tables where table_name like '명';

※ 시퀀스 정보 보기
SQL> select * from user_sequences;

※ 시노님 조회
SQL> select * from all_synonyms where synonym_name='명';

※ 테이블 인덱스 정보 조회
SQL> select * from all_ind_columns where table_name='테이블명';

※ 테이블의 컬럼 정보 조회
SQL> select * from all_tab_columns where table_name='테이블명';

※ table comment 쿼리
SQL> select * from all_tab_comments where table_name='테이블명';

※ column comment 쿼리
SQL> select * from all_col_comments where table_name='테이블명'

블로그 이미지

왕왕왕왕

,