function
검색
전체 텍스트 결과: 클래스 - 기본 @language:javascript 25 조회 수 , 마지막으로 수정됨: 13개월 전 , 파라미터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 20 조회 수 , 마지막으로 수정됨: 13개월 전 ===
<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 19 조회 수 , 마지막으로 수정됨: 13개월 전 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 16 조회 수 , 마지막으로 수정됨: 13개월 전 r printed on top of one another.
You can use two function s to retrieve the width (or extent) of 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 그냥 메모 @language:flash 15 조회 수 , 마지막으로 수정됨: 13개월 전 , 0, 1, 1 );
</code>
함수
<code actionscript3>
// function <Function Name>( <ParameterName>:<ParameterType> ) : <ReturnType> {}
function openHandler(event:Event):void
{
}
</code>
형 변환
... ript3>
//<ObjectName>.addEventListener( <event>, <function Name> );
// ObjectName : openBtn
// event : MouseE 언어 퀵 요약 @language:corona 13 조회 수 , 마지막으로 수정됨: 13개월 전 ------------------------------------------
-- 함수
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 12 조회 수 , 마지막으로 수정됨: 13개월 전 력하고 종료한다.
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; // 기본 형식 @tool:nsis 10 조회 수 , 마지막으로 수정됨: 13개월 전 ---------------
# 바탕화면에 아이콘을 만들거나 인터넷 바로가기를 만들거나
Function makeShortcutOrInternetshortcut
# 프로그램 그룹 만들기
... EB_SITE}" "$INSTDIR\${PRODUCT_ENG_NAME}.ico" "0"
Function End
#--------------------------------------------... ----------------------------
; Uninstall section
Function un.onUninstSuccess
HideWindow
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name)は削除されました。"
Function End
Function un.onInit
Function End
Section Unins Unity 플러그인 @language:unity:plugin 10 조회 수 , 마지막으로 수정됨: 13개월 전 일로 된, 최소 플러그인 (너무 최소다..)
<code c>
float FooPluginFunction () { return 0.5f }
</code>
==== 플러그인 사용을 위한 C# 스크... )]
#endif
private static extern float FooPluginFunction ();
void Awake () {
// 플러그인안에 FooPluginFunction 을 호출하고
// 콘솔에 5를 출력합니다
print (FooPluginFunction ());
}
}
</code>
====== 안드로이드 플러그인 ======
===== Function List @language:gamemaker 9 조회 수 , 마지막으로 수정됨: 13개월 전 e language GML and we give an overview of all the function s and variables available to control all aspects of your game.
====== Function List ======
The following sections all detail the many different function s that are available to you when using GML. They h... ve been split into different groups of associated function s and, where necessary, have been cross referenced jQuery 코드 조각 @language:jquery 8 조회 수 , 마지막으로 수정됨: 13개월 전 ------ -->
</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 7 조회 수 , 마지막으로 수정됨: 13개월 전 ?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-> Mediawiki to dokuwiki @webapp 6 조회 수 , 마지막으로 수정됨: 13개월 전 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;
node.js @language:nodejs 6 조회 수 , 마지막으로 수정됨: 13개월 전 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; // 연결실패
Tween Assets @language:unity 5 조회 수 , 마지막으로 수정됨: 13개월 전 |
| ::: | <code>{"onComplete":function ToCallOnComplete}</code> ... |
| ::: | <code>{"onComplete":function ToCallOnComplete,"onCompleteParam":hashTableToPass... > |
| onUpdate | <code>{"onUpdate":function ToCallOnUpdate}</code> ... |
| ::: | <code>{"onUpdate":function ToCallOnUpdate,"onUpdateParam":hashTableToPassToOn PHP 복붙용 코드 모음 @language:php 4 조회 수 , 마지막으로 수정됨: 13개월 전 작동 @language:shader:unity 4 조회 수 , 마지막으로 수정됨: 13개월 전 PHP 파일 디렉토리 @language:php 3 조회 수 , 마지막으로 수정됨: 13개월 전 디렉토리 탐색하기 @language:cocoa 2 조회 수 , 마지막으로 수정됨: 13개월 전 PHP 날짜 시간 @language:php 2 조회 수 , 마지막으로 수정됨: 11개월 전 MS 정규식 (좀 다름) @regexp 1 조회 수 , 마지막으로 수정됨: 13개월 전 맨티스 Mantis (BTS) @webapp 1 조회 수 , 마지막으로 수정됨: 13개월 전 Vue.js 시작 @webapp 1 조회 수 , 마지막으로 수정됨: 13개월 전 설치한 도쿠위키 플러그인 @wiki 1 조회 수 , 마지막으로 수정됨: 12개월 전 인스턴스 @language:gamemaker 1 조회 수 , 마지막으로 수정됨: 13개월 전 PHP 배열 @language:php 1 조회 수 , 마지막으로 수정됨: 13개월 전 a @language:shader 1 조회 수 , 마지막으로 수정됨: 13개월 전 입력 @language:unity 1 조회 수 , 마지막으로 수정됨: 13개월 전
문서 도구