it/programming

it/programming

[ASP classic] include 활용하기

HTML 상 주석처럼 써넣는다. 상대경로 절대경로 상대경로에서는 url 맨 앞에 ' / ' 을 넣을 수 없다.넣을경우 오류를 뱉어낸다.

it/programming

[HTML] placeholder 에서 줄바꿈하기 placeholder line break character

줄바꿈 위치에 [ ] 을 넣어주세요.참고 : Character entity references in HTML

it/programming

(jQuery)javascript 셀렉터 가져오기

$.fn.getSelector = function() { var selector = $(this).parents().map(function() { return this.tagName; }).get().reverse().join(" "); if (selector) selector += " "+ $(this)[0].nodeName; var id = $(this).attr("id"); if (id) selector += "#"+ id; var classTag= $(this).attr("class"); if (classTag) selector += "." + $.trim(classTag).replace(/\s/gi, "."); return selector; }; jQuery 기반으로 만들었다.$(object)...

it/programming

장고 테스트(Django PyUnit Test) - django.test

[docs.djangoproject.com] translationhttps://docs.djangoproject.com/en/1.7/topics/testing/https://docs.djangoproject.com/en/1.7/topics/testing/overview/https://docs.djangoproject.com/en/1.7/intro/tutorial05/https://docs.djangoproject.com/en/1.7/topics/testing/tools/ Testing in Django Automated testing is an extremely useful bug-killing tool for the modern Web developer. You can use a collection o..

it/programming

NGINX + PostgreSQL 을 위한 리서치 (*번역)

목차준비설치Step One: 패키지 업데이트(Update Packages)Step Two: 가상 환경세팅(Install and Create Virtualenv)Step Three: 장고 설치(Install Django)Step Four: PostgreSQL 설치(Install PostgreSQL)Step Five: NGINX 설치(Install NGINX)Step Six: Gunicorn 설치(Install Gunicorn) 설정Step Seven: PostgreSQL 설정(Configure PostgreSQL)Step Eight: 장고 프로젝트 생성(Create a Django Project)Step Nine: Gunicorn 설정(Configure Gunicorn)Step Ten: NGINX 설정(C..

it/programming

[javascript] 숫자 두자리로 만들기

function numFormat(variable) { variable = Number(variable).toString(); if(Number(variable) < 10 && variable.length == 1) variable = "0" + variable; return variable; } 1을 넣으면 01 2를 넣으면 02 012 넣으면 12

it/programming

[javascript] 금액에 세자리마다 반점 찍기

function splitbyspot(money) { money = String(money); return money.replace(/(\d)(?=(?:\d{3})+(?!\d))/g, '$1,'); } replace() 정규식 사용하였습니다.

it/programming

[Javascript] 금액을 한글로 변환하기

function viewKorean(num) { var hanA = new Array("","일","이","삼","사","오","육","칠","팔","구","십"); var danA = new Array("","십","백","천","","십","백","천","","십","백","천","","십","백","천"); var result = ""; for(i=0; i 일억일천일백삼십만이천원 잘 나옵니다.

반응형
훈솔
'it/programming' 카테고리의 글 목록 (4 Page)