검색결과 리스트
object에 해당되는 글 3건
- 2010/03/10 javascript object 값 출력 (2)
- 2006/09/22 스크립트 오브젝트 테이블
- 2006/09/22 javascript Object Table
글
IT/Tech 2010/03/10 04:30javascript object 값 출력
[code javascript]
dump: function(arr,level) {
var dumped_text = "";
if(!level) level = 0;
//The padding given at the beginning of the line.
var level_padding = "";
for(var j=0; j < level+1; j++) level_padding += " ";
if(typeof(arr) == 'object') { //Array/Hashes/Objects
for(var item in arr) {
var value = arr[item];
if(typeof(value) == 'object') { //If it is an array,
dumped_text += level_padding + "'" + item + "' ...\n";
dumped_text += this.dump(value,level+1);
} else {
dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n";
}
}
} else { //Stings/Chars/Numbers etc.
dumped_text = "===>"+arr+"<===("+typeof(arr)+")";
}
return dumped_text;
}
[/code]
핵심은
어디서 퍼 왔는지 당췌 기억이.. ^^;;;
핵심은
for(var item in arr)어디서 퍼 왔는지 당췌 기억이.. ^^;;;
'IT > Tech' 카테고리의 다른 글
| google 데스크탑 garget에서 myPickup RSS 구독하기 (4) | 2010/04/05 |
|---|---|
| naver.com 나눔글꼴 설치 (0) | 2010/04/02 |
| javascript object 값 출력 (2) | 2010/03/10 |
| me2day api PHP (7) | 2010/02/19 |
| PHP 성능튜닝 IF & Switch 문법 (0) | 2010/01/28 |
| 프로그램에서 메일수신확인 방법 (0) | 2010/01/04 |
트랙백
댓글
글
IT/Tech 2006/09/22 14:34스크립트 오브젝트 테이블
| 객체(Object) | 속성(Property) | 메소드(Method) | 이벤트핸들러(Event Handler) |
|---|---|---|---|
| Anchor | name text x y | ||
| anchors array | length | ||
| Applet | applet's methods | ||
| applets array | length | ||
| Area | hash host gostname href pathname port protocol search target | onClick onmouseOut onmouseOver | |
| Array | concat join pop push reverse shift slice sort unshjft | ||
| Button | form name type value | blur click focus | onClick onmouseDown onmouseUp |
| Checkbox | checked defaultChecked form name type value | blur click focus | onClick onmouseDown onmouseUp |
| Date | getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear parse setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear goGMTString toLocaleString toString toUTCString UTC valueOf | ||
| document | activeElement alinkColor all Anchor anchors Applet applets Area bgColor body charset children cookie defaultCharset domain embed embeds expando fgColor Form forms Image images lastModified Layer layers linkColor Link links location parentWindow plugins readyState referrer scripts selection styleSheets title URL vlinkColor | clear close createElement createStylesheet elementFromPoint getSelection open write writeIn | |
| FileUpload | blur focus select | onBlur onFocus onSelect | |
| orm | action Button Checkbox elements encoding FileUpload Hidden length method name Password Radio Reset Select Submit target Text Textarea | reset submit | onReset onSubmit |
| forms array | length | ||
| frames array | length | ||
| Hidden | form name type value | ||
| History | current length next previous | back foward go | |
| history array | length | ||
| Image | border complete height hspace lowsrc name src vspace width x y | onAbort onError onLoad | |
| images array | length | ||
| Layers | above background below bgColor clip document hidden left name pageX pageY parentLayer siblingAbove siblingBelow src top visibility window x y zindex | load moveAbove moveBelow moveBy moveTo moveToAbsolute resizeBy resizeTo | onBlur onFocus onmouseOut onmouseOver onmouseUp |
| layers array | length | ||
| Link | hash host hostname href pathname port protocol search target text x y | onClick onmouseOut onmouseOver | |
| links array | length | ||
| location | hash host hostname href pathname port protocol search | reload replace | |
| Math | E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2 | abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan | |
| MimeType | description enabledPlugin suffixes type& | nbsp; | |
| mimeTypes array | length | ||
| navigator | appCodeName appMinorVersion appName appVersion browserLanguage cookieEnabled cpuClass languages mimeTypes platform plugins systemLanguage userAgent userLanguage userProfile | javaEnabled preference savePreferences taintEnabled | |
| Number | MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY | toString valueOf | |
| Option | defaultSelected index selected selectedIndex text value | ||
| options array | length | ||
| Password | defaultValue form name type value | blur focus select | onBlur onChange onFocus onKeydown onKeypress onKeyup onSelect |
| Plugin | description filename name | refresh | |
| plugins array | length | ||
| Radio | checked defaultChecked form name type value | blur click focus | onClick onmouseDown onmouseUp |
| radio array | length | ||
| Reset | form name type value | blur click focus | onClick onmouseDown onmouseUp |
| screen | availHeight availLeft availTop availWidth BufferDepth colorDepth height pixelDepth updayeInterval width | ||
| Select | form length name options selectedIndex type | blur focus | nChange |
| String | length | anchor big blink bold charAt charCodeAt concat fixed fontcolor fontsize formCharCode indexOf italics lastIndexOf link match replace search slice small split strike sub substr substring sup toLowerCase toUpperCase | |
| Submit | form name type value | blur click focus | onClick onMouseDown onMouseUp |
| Text | defaultValue form name type value | blur click focus select | onBlur onChange onFocus onKeydown onKeyup onSelect |
| Textarea | defaultValue form name type value | blur click focus select | onBlur onChange onFocus onKeydown onKeyup onSelect |
| window | clientInformation closed defaultStatus dialogArguments dialogHeight dialogLeft dialogLeft dialogTop dialogWidth document event frames history innerHeight innerWidth length location locationbar menubar name navigator offscreenBuffering opener outerHeight outerWidth pageXOffset pageYOffset parent personalbar screen screenX screenY scrollbars self status statusbar toolbar top | alert back blur close confirm find focus forward home moveBy moveTo navigate open prompt resizeBy resizeTo scroll scrollBy scrollTo stop | onBlur onError onFocus onLoad onResize onUnload |
'IT > Tech' 카테고리의 다른 글
| Visual Basic 6.0 File Extention Name (0) | 2006/09/22 |
|---|---|
| Visual Basic 컨트롤 이름 규칙 (1) | 2006/09/22 |
| 스크립트 오브젝트 테이블 (0) | 2006/09/22 |
| IP 주소란? (0) | 2006/09/22 |
| TCP/IP의 역사 (0) | 2006/09/22 |
| 포트(ports) (0) | 2006/09/22 |
트랙백
댓글
글
IT/Tech 2006/09/22 13:48javascript Object Table
레퍼러 정보 : document.referrer;
Event Key F5 ☞ if (event.keyCode == 116)
Random : function random(n) { return (Math.floor(Math.random()*100000)%n); } // 0 ~ n-1 사이의특정숫자
Sound
Event Key F5 ☞ if (event.keyCode == 116)
Random : function random(n) { return (Math.floor(Math.random()*100000)%n); } // 0 ~ n-1 사이의특정숫자
Sound
javascript 함수 : stop_all(), StopAll(), GetVolume(), IsPaused(), IsPlaying(), fade_from_to(), fade_to(), stop_at_end(), end_time(), start_at_beginning(), start_time(), setvol(), getWindow(), isActive(), destroy(), init(), getPeer(), wait(), notifyAll(), notify(), toString(), equals(), hashCode(), getClass(), IsReady(), pause(), stop(), play()
HTML : <EMBED NAME="song" SRC="mySong.mid" WIDTH=100 HEIGHT=100 HIDDEN=FALSE AUTOSTART=TRUE MASTERSOUND>
Object : document.song , document.embeds["song"] , document.embeds[0]
'IT > Tech' 카테고리의 다른 글
| 노드(Node) (0) | 2006/09/22 |
|---|---|
| Design (0) | 2006/09/22 |
| javascript Object Table (0) | 2006/09/22 |
| Method (0) | 2006/09/22 |
| Event (0) | 2006/09/22 |
| javascript 정규표현 Regular Expression (0) | 2006/09/22 |
RECENT COMMENT