/**
 *	1차 방정식
 *	@param a, b, c
 */
function linearEquation(a, b, c){
	var xx = (b*c)/a;
	return xx
}
Posted by august5pm
,
/**
 *	1차 함수
 *	@param x, a, b, c, d - x가 a에서 b까지 변할 때 타겟은 c부터 d까지 변한다.
 *	@return y 타겟 값
 */
function linearFunc(x, a, b, c, d){
	var y = (d-c)/(b-a)*(x-a)+c;
	return y;
}
Posted by august5pm
,

셀렉트 박스 초기화 시키는 방법


$(select).prop('selectedIndex',0);
Posted by august5pm
,