전체 텍스트 결과:
- 구버젼 클래스 @language:javascript
- , 파라미터2, 와 같이 콤마로 구분되는 파라미터들 //- 코드의 형식 - 클래스이름 = function( 파라미터 ) { // ... } </code> 실제 사용하는 코드의 예시, 함수처럼... 과 생성자다. <code javascript> //- 간단한 예제 MainClass = function( myId, yourName ) { this.myId = myId; this.your... 를 추가한다. <code javascript> 클래스이름.prototype.함수이름 = function(파라미터) { //... } </code> 사용하는 예제. <code javascri... b' ); _mc.doSomething( 'quit' ); _mc.printThis = function() { return xx; } </code> ====== JSON 표기 =====
- PHP 클래스 @language:php
- === <code php> class MySample { public $var1; function func1() {} } // ';' 는 필요 없나? -> 없어도 된다. </code> ... ple { public $var = 'class attribute'; //생성자 function __construct( /* param if need */ ) { echo 'construct'.'<br/>'; } //소멸자 function __destruct() { echo 'destruct' . '<br/>'; } } <... ple { public $var = 'class attribute'; //... function foo() { echo $this->var; } } $a = new MySamp
- jQuery 재참고 @language:jquery
- jQuery ===== <code javascript> $(document).ready(function() { $('.poem-stanza').addClass('emphasized'); }... '' 함수를 호출한다. <code javascript> $('#btn_a').click(function () { box_move(); }); </code> ''box_move()'' 함수를 작성 <code javascript> function box_move() { // 'sample_box' 오브젝트(사용할)를 미리 찾아둔다... g</sup> 타입 * 빼도 됨. 그럴 경우 기본값 : ''swing'' * (function) 완료시 호출할 함수로 구성한다. * 빼도 됨. 그럴 경우 아무것도 안함. 기본
- Enumerating the Installed Fonts @winapi
- text in the current font. The GetTabbedTextExtent function computes the width and height of a character stri... y of tab-stop positions. The GetTextExtentPoint32 function computes the width and height of a line of text. ... be sheared to the right. The amount of shear is a function of the height of the character. One way to write... multiple fonts is to use the GetTextExtentPoint32 function after each call to TextOut and add the length to
- 그냥 메모 @language:flash
- , 0, 1, 1 ); </code> 함수 <code actionscript3> // function <FunctionName>( <ParameterName>:<ParameterType> ) : <ReturnType> {} function openHandler(event:Event):void { } </code> 형 변환 ... Btn.addEventListener(MouseEvent.CLICK, openBox); function openBox(event:MouseEvent):void { // do something... ddEventListener(Event.ENTER_FRAME, openHandler); function openHandler(event:Event):void { } </code> =====
- 언어 퀵 요약 @language:corona
- ------------------------------------------ -- 함수 function add1(a,b) return a+b; end -- 함수 : local, global 있다 local function add2(a,b) return a+b end -- 함수 : 변수에 할당 가능 local fn_add3 = function(a, b) return a^b end print(fn_add3(10, 2)) -- 함수... 를 실행하면 fn1()만 무한 실행된다. --[[ local _b = true local function fn1() while _b do print("OK") end print("END
- 독시젠 A to Z @tool
- 력하고 종료한다. virtual ~RootZero() { cout << __FUNCTION__ << endl; } ///@brief virtual 기능 확인용 테스트 함수.... RootZero { public: RootOne() { cout << __FUNCTION__ << endl; } virtual ~RootOne() { cout << __FUNCTION__ << endl; } ///@brief virtual 기능 확인용 테스트 함수... T virtual bool initHandler() { cout << __FUNCTION__ << endl; return true; } int mnTest; //
- jQuery 코드 조각 @language:jquery
- ------ --> </html> <script> $('#btn_a').click(function () { //$(this).hide(); box_move(); }); $('#btn_reset').click(function () { box_reset(); }); // 박스 이동 function box_move() { var _box = $('#sample_box_1'); va... x" }, 200, "easeOutBack", function() { setTimeout(function() { box_reset()
- Tutorial - News section @language:php:codeigniter
- ?php class News_model extends CI_Model { public function __construct() { $this->load->database(); } ... ]]에 동작하도록 되어 있다. 아래의 코드를 추가한다. <code php> public function get_news( $slug = FALSE ) { if( $slug == FALSE ... <?php class News extends CI_Controller { public function __construct() { paret::__construct(); $th... ('news_model'); } // 컨트롤러가 모델을 사용하는구나. public function index() { $data['news'] = $this->news_model->
- 노드.js (node.js) @language:nodejs
- e> =====접속===== <code javascript> _conn.connect(function (err) { if(err){ console.error(err); ... vascript> _conn.query('SELECT 1 + 1 AS solution', function (error, results, fields) { if (error) throw e... avascript> pool.query('SELECT 1 + 1 AS solution', function (error, results, fields) { if (error) throw err... ool = mysql.createPool(...); pool.getConnection(function(err, connection) { if (err) throw err; // 연결실패
- Mediawiki to dokuwiki @webapp
- xtends auth_basic { var $url = array(); function auth_zbxe() { global $conf; def... 4때문에 destructor를 명시적 선언 register_shutdown_function("auth_zbxe_disconnect", $this); } // check password function checkPass($user, $pass) { $query = "selec... / mail : 문자열, 메일주소 // grps : 배열, 유저의 그룹 목록 function getUserData($user) { global $conf;
- 기본 형식 @tool:nsis
- --------------- # 바탕화면에 아이콘을 만들거나 인터넷 바로가기를 만들거나 Function makeShortcutOrInternetshortcut # 프로그램 그룹 만들기 ... ---------------------------- ; Uninstall section Function un.onUninstSuccess HideWindow MessageBox MB_ICO... NFORMATION|MB_OK "$(^Name)は削除されました。" FunctionEnd Function un.onInit FunctionEnd Section Uninstall !insert... 하도록 ===== <code nsis> #뒤의 세문자를 읽어서, 다음 동작을 결정한다. Function MakeShortcutOrInternetshortcut # $0 : 저장할 임시 변수
- Velocity @language:2d-game-physics
- ct's position(move it along the predefined angle) function GameLoop() { movingObject.x = movingObject.x + ... ct's position(move it along the predefined angle) function GameLoop() { // continously add acceleration to... ach frame call game loop to set object's position function GameLoop() { if( moving == true ) { velocit... = time * gravity * 0.5f 코드 예제 <code javascript> function GameLoop() { if( thrown == true && moving == fa
- CSS 템플릿 : 고정식 좌측 메뉴 @language:css
- --> </html> <script> $('#lm-btn-show1').click(function () { hide_fixed_leftmenu(); }); $('#lm-btn-show2').click(function () { hide_fixed_leftmenu(); }); /* 스크롤무관한 왼쪽 메뉴의 on/off */ function hide_fixed_leftmenu() { var _lm = $('.lm-base... "right" }); } } jQuery(document).ready(function () { // 문서 로딩이 끝났다면 할 것들 }); </script> </co
- PHP 복붙용 코드 모음 @language:php
- de> ===== 리턴값을 레퍼런스로 리턴 ===== <code php> public function &argsArray() { static $flags = Array(); retur... 파라미터 함수 ===== * [[http://jp2.php.net/manual/en/function.func-get-args.php]] 기본 <code php> <?php function foo() { $numargs = func_num_args(); echo "Number... , 3); ?> </code> 활용 <code php> //test.php <?php function foo() { include './fga.inc'; } foo('First ar