공부/컴퓨터
쪽팅 클라이언트 - 자바 스크립트가 실행할 메소드는 public로 잡을것
찬
2003. 7. 14. 16:09
반응형
자바 스크립트가 실행할 메소드는 public로 잡아야 함.
http://mjava.net
188: //sleep 할 시간을 초기화,, 쪽지가 도착했을때, 쪽지를 보냈을때..실행..
189: //javascript에서 호출함으로 반드시 public이어야 함..
190: public void initTime() {
191: this.startTime = System.currentTimeMillis(); //시작시간을 현재시간으로 설정
192: this.dtime = this.checkNewMemoTime; //기본 checkNewMemoTime을 thread의 dtime(sleep)으로 설정
193:
194: thread.interrupt();
195: }
http://mjava.net
188: //sleep 할 시간을 초기화,, 쪽지가 도착했을때, 쪽지를 보냈을때..실행..
189: //javascript에서 호출함으로 반드시 public이어야 함..
190: public void initTime() {
191: this.startTime = System.currentTimeMillis(); //시작시간을 현재시간으로 설정
192: this.dtime = this.checkNewMemoTime; //기본 checkNewMemoTime을 thread의 dtime(sleep)으로 설정
193:
194: thread.interrupt();
195: }
반응형