2015. 5. 21. 15:41 IT/html_css

iframe 문제점.

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

iframe  사용 시 다음과 같은 문제점이 있다.


1. iframe을 포함하는 페이지의 도메읶과 iframe에서 불러오는 페이지의 도메인이 다르면, 크로스 도메인 설정을 위해 별도의 소스 코드가 추가되어 성능에 영향을 줄 수 있다.


2. iframe의 높이값이 콘텎츠에 따라 유동적이어야 한다면 별도의 자바스크립트 코드가 추가되어 성능에 영향을 줄 수 있다.


3. 검색 엔진에서 iframe의 내용이 추출하여 표시하면 전체 페이지의 레이아웃이 비정상적으로 보일 수 있으며, 주변 맥락(머리글, 바닥글, 메뉴)이 노출되지 않아 검색 엔진 최적화 (SEO) 관점에서 적합하지 않다.


4. iframe은 가장 마지막으로 로딩되기 때문에 페이지 로딩 초기에는 화면이 비어 보일 수 있다.


5.모바일에서는 iframe 스크롤에 대한 랜더링이 브라우저별로 다르며, CSS  말 줄임이 동작하지 않는 브라우저가 있다.


Posted by 당양부부34

2015. 5. 21. 14:56 IT/html_css

placeholder 줄바꿈.

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

<br> 대신 

&#10;

넣어주면 된다



<textarea cols="30" rows="5" placeholder="가 &#10; 나 &#10; 다 &#10; "></textarea>

Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.


   iframe을 적용할 사이트는 a사이트


   참고할 사이트는 b사이트


 


아래는 참고할 b사이트 소스


<html>

<head>

<script type="text/javascript"> 

<!--

function rsize() {

  var iframe = document.getElementById( 'inneriframe' );

  var wrapper = document.getElementById( 'wrapper' );

  

  if(wrapper.offsetHeight == 0){

  } else {

  pageheight = wrapper.offsetHeight;

  var height = pageheight+"px";


 }

iframe.src = 'http://적용할a사이트주소/autosize.htm?height='+height;

}

//-->

</script>

</head>


<body onload=rsize();>

<div id="wrapper">

내용...

</div>

<iframe id="inneriframe" width="10" height="10" style="display:none"></iframe>

</body>

</html>

 

or


<html>

<head>

<script type="text/javascript"> 

<!--

$(document).ready(function(){

var iframe = document.getElementById( 'inneriframe' );

var wrapper = document.getElementById( 'ifmwrapper' );

 

if(wrapper.offsetHeight == 0){

} else {

pageheight = wrapper.offsetHeight;

var height = pageheight;

}


iframe.src = 'http://적용할a사이트주소/autosize.htm?height='+height;

});

//-->

</script>

</head>


<body onload=rsize();>

<div id="wrapper">

내용...

</div>

<iframe id="inneriframe" width="10" height="10" style="display:none"></iframe>

</body>

</html>

 


 


 


iframe을 적용하는 a사이트에 autosize.htm문서를 작성한다.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>


<script>

function goPage(value) {

 window.open(value,'_self','');

}

      function onLoad() {

        var params = window.location.search.substring( 1 ).split( '&' );

        var height;

        for( var i = 0, l = params.length; i < l; ++i ) {

          var parts = params[i].split( '=' );

          switch( parts[0] ) {

          case 'height':

            height = parseInt( parts[1] );

            break;

          }

        }

        if( typeof( height ) == 'number' ) {

          window.top.updateIFrame( height );

        }

      }

    window.onload = onLoad;

</script>

</head>

<body>

</body>

</html>


Or PHP일 경우


<html>

<head>

<script src="/cms/js/jquery/jquery-1.11.2.min.js"></script>

<script type="text/javascript">

  $(document).ready(function(){

    top.resizeIframe(<?=$_GET["height"]?>); // B 에서 숨겨진 아이프레임으로 A1 이 호출되지만, A 가 top 이 되는 것.

  });

</script>

</head>

<body>

</body>

</html>




 


iframe이 들어갈 a사이트 페이지에 아래 소스를 적용시킨다


<script type="text/javascript">

      function updateIFrame( height ) {

        var iframe = document.getElementById( 'myiframe' );

        iframe.setAttribute( 'height', height ); 

  //alert(height);

      }

    </script>


<iframe id="myiframe" src="http://아래는 참고할 b사이트 페이지" scrolling=no frameborder=0 width="320" height="600"></iframe>


 


'IT > html_css' 카테고리의 다른 글

iframe 문제점.  (0) 2015.05.21
placeholder 줄바꿈.  (0) 2015.05.21
iframe resize, resizing, 리사이징.  (0) 2015.04.27
HTML5 / CSS3 placeholder 폰트 색상 지정  (0) 2015.03.17
div 스크롤. div scroll.  (0) 2014.12.31
Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

<input type="image" src="/images/post/btn_direct_buy2.gif" alt="결제를 요청합니다" border="0" onclick="return jsf__pay(this.form);this.disabled=true;return false;" />



'IT > jquery_javascript' 카테고리의 다른 글

레이어 팝업 가운데 정렬  (0) 2015.09.15
jquery 숫자만 입력  (0) 2015.07.17
jquery parent, parents. 상위 요소 가져오기.  (0) 2015.04.21
jquery ajax  (0) 2015.04.16
jquery on function 함수.  (0) 2015.04.16
Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

사이트를 사용하다가 보면, 사용자가 버튼을 연속으로 클릭하는 경우가 있습니다. 이런 경우 데이터를 2번 저장하기 때문에 관련된 처리가 이상하게 되는 경우가 있으며, 중요 데이터를 처리하는 경우라면 이러한 경우를 예상하고 방지해야 하기 때문에 여러가지 기법들이 동원됩니다.


여기서는 간단하게 HTML과 자바스크립트로 이런 방법을 처리하는 것을 알아보겠습니다.


1. Image Button 인 경우 (이미지 버튼)


<img id=”save” name=”save” src=”save.png” onclick=”javascript:save(); this.style.visibility=’hidden'; ” >


이렇게 하면, 버튼을 클릭함과 동시에 버튼 이미지가 보이지 않게 되어 버립니다. 물론 자바스크립트 함수인 save() 안에서 함수 종료 처리 전에, 다시 이미지 버튼을 보이도록 처리를 해주어야 합니다.


2. input 형태의 버튼인 경우


<input type=”button” onClick=”javascript:save(); this.disabled=true; ”>


이번 경우에는 input 타입으로 된 버튼으로 클릭하면 곧바로 사용 불가능한 버튼으로 변경되며, 자바스크립트 save() 함수 내부에서 다시 disabled 를 풀어주는 처리를 해주셔야 합니다.


간단하게는 위에 나열된 2가지 방법을 이용하면 손쉽게 더블클릭 방지를 처리할 수 있습니다. 도움이 되셨으면 좋겠습니다.


감사합니다.

Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

iframe에 열리는 페이지의 길이를 알아내어 iframe의 크기를 바꿔주는 소스입니다..

========================================================================================

도메인이 다른 문서를 iframe에 링크할 경우 iframe resizable시 "권한이 없습니다"라는 문구가 뜹니다.

이런경우 iframe 에 onLoad 하지 말고 iframe내 문서의 body 문에 아래와 같은 스크립트를

사용하여 iframe을 resizable 시키도록 합니다.

 

# iframe 링크 문서

<body onLoad="resizeHeight();">

function resizeHeight()

{

  // iframe reSizable 도메인 다른 곳에서 링크 걸경우

  h = document.body.scrollHeight + 10;

  resizeTo(602, h);

}

========================================================================================

도메인이 동일한 문서의 일 경우는 아래 요약글에 쓰여진 스크립트를 사용해 주세요!!

'IT > html_css' 카테고리의 다른 글

iframe 문제점.  (0) 2015.05.21
placeholder 줄바꿈.  (0) 2015.05.21
다른 도메인 ifame 리사이징.  (0) 2015.05.08
HTML5 / CSS3 placeholder 폰트 색상 지정  (0) 2015.03.17
div 스크롤. div scroll.  (0) 2014.12.31
Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.


[MySql] auto_increment 값 알아오기


컬럼타입이 auto_increment이면 insert 시 값을 지정하지 않아도 알아서 자동으로 증가된 값을 사용한다. 그러나 문제는 PK로 사용한 경우 insert 후 그 값을 알 수가 없다는 것이다. 그래서 MySQL에서는 가장 최근에 사용된 auto_increment값을 알수 있게 해주는 함수를 제공한다.


LAST_INSERT_ID()

이 함수는 connection기반으로 가장 최근에 사용된 auto_increment 값을 리턴한다. 사용할 대는 아래와 같이 간단하게.


select LAST_INSERT_ID();


이런 식으로 사용하면 된다.


참고로 auto_increment를 사용할 때 임의로 시작값을 설정하기 위한 것..

alter table "tbl_name" auto_increment = xxx


=================================================


3.6.9. Using AUTO_INCREMENT

The AUTO_INCREMENT attribute can be used to generate a unique identity for new rows:


CREATE TABLE animals (


             id MEDIUMINT NOT NULL AUTO_INCREMENT,


             name CHAR(30) NOT NULL,


             PRIMARY KEY (id)


             );


INSERT INTO animals (name) VALUES ('dog'),('cat'),('penguin'),


                                  ('lax'),('whale'),('ostrich');


SELECT * FROM animals;

Which returns:


+----+---------+


| id | name    |


+----+---------+


|  1 | dog     |


|  2 | cat     |


|  3 | penguin |


|  4 | lax     |


|  5 | whale   |


|  6 | ostrich |


+----+---------+

You can retrieve the most recent AUTO_INCREMENT value with the LAST_INSERT_ID() SQL function or the mysql_insert_id() C API function. These functions are connection-specific, so their return value is not affected by another connection also doing inserts.


Note: For a multiple-row insert, LAST_INSERT_ID()/mysql_insert_id() actually returns the AUTO_INCREMENT key from the first of the inserted rows. This allows multiple-row inserts to be reproduced correctly on other servers in a replication setup.


For MyISAM and BDB tables you can specify AUTO_INCREMENT on a secondary column in a multiple-column index. In this case, the generated value for the AUTO_INCREMENT column is calculated as MAX(auto_increment_column)+1 WHERE prefix=given-prefix. This is useful when you want to put data into ordered groups.


CREATE TABLE animals (


             grp ENUM('fish','mammal','bird') NOT NULL,


             id MEDIUMINT NOT NULL AUTO_INCREMENT,


             name CHAR(30) NOT NULL,


             PRIMARY KEY (grp,id)


             );


INSERT INTO animals (grp,name) VALUES('mammal','dog'),('mammal','cat'),


                  ('bird','penguin'),('fish','lax'),('mammal','whale'),


                  ('bird','ostrich');SELECT * FROM animals ORDER BY grp,id;

Which returns:


+--------+----+---------+


| grp    | id | name    |


+--------+----+---------+


| fish   |  1 | lax     |


| mammal |  1 | dog     |


| mammal |  2 | cat     |


| mammal |  3 | whale   |


| bird   |  1 | penguin |


| bird   |  2 | ostrich |


+--------+----+---------+

Note that in this case (when the AUTO_INCREMENT column is part of a multiple-column index), AUTO_INCREMENT values are reused if you delete the row with the biggest AUTO_INCREMENT value in any group. This happens even for MyISAM tables, for which AUTO_INCREMENT values normally are not reused.)


If the AUTO_INCREMENT column is part of multiple indexes, MySQL will generate sequence values using the index that begins with the AUTO_INCREMENT column, if there is one. For example, if the animals table contained indexes PRIMARY KEY (grp, id) and INDEX (id), MySQL would ignore the PRIMARY KEY for generating sequence values. As a result, the table would contain a single sequence, not a sequence per grp value. 


==================================================================



LAST_INSERT_ID()

LAST_INSERT_ID(expr)

Returns the last automatically generated value that was inserted into an AUTO_INCREMENT column.

mysql> SELECT LAST_INSERT_ID();        -> 195

커넥트 단워로 값이 유지됨으로 다른 사용자에 의해서 값이 바뀌지 않습니다.

The last ID that was generated is maintained in the server on a per-connection basis. This means the value the function returns to a given client is the most recent AUTO_INCREMENT value generated by that client. The value cannot be affected by other clients, even if they generate AUTO_INCREMENT values of their own. This behavior ensures that you can retrieve your own ID without concern for the activity of other clients, and without the need for locks or transactions. The value of LAST_INSERT_ID() is not changed if you update the AUTO_INCREMENT column of a row with a non-magic value (that is, a value that is not NULL and not 0). If you insert many rows at the same time with an insert statement, LAST_INSERT_ID() returns the value for the first inserted row. The reason for this is to make it possible to easily reproduce the same INSERT statement against some other server. If you use INSERT IGNORE and the record is ignored, the AUTO_INCREMENT counter still is incremented and LAST_INSERT_ID() returns the new value. If expr is given as an argument to LAST_INSERT_ID(), the value of the argument is returned by the function and is remembered as the next value to be returned by LAST_INSERT_ID(). This can be used to simulate sequences:

Create a table to hold the sequence counter and initialize it:

mysql> CREATE TABLE sequence (id INT NOT NULL);mysql> INSERT INTO sequence VALUES (0);

Use the table to generate sequence numbers like this:

mysql> UPDATE sequence SET id=LAST_INSERT_ID(id+1);mysql> SELECT LAST_INSERT_ID();

The UPDATE statement increments the sequence counter and causes the next call to LAST_INSERT_ID() to return the updated value. The SELECT statement retrieves that value. The mysql_insert_id() C API function can also be used to get the value. See section 21.2.3.33 mysql_insert_id().

You can generate sequence

'IT > MySQL' 카테고리의 다른 글

mysql event 조회 확인  (0) 2015.06.12
MYSQL Data type  (0) 2015.06.01
Mysql 날짜 함수  (0) 2015.04.24
Mysql 반올림, 올림, 버림.  (0) 2015.04.20
MYSQL 에서 SP exit. 중간에 나가기.  (0) 2015.04.15
Posted by 당양부부34

2015. 4. 24. 14:41 IT/MySQL

Mysql 날짜 함수

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.



 

- DAYOFWEEK(date) : 해당 날짜의 요일을 숫자로 반환한다. 일요일은 1, 토요일은 7 이다. 

- 예 : select DAYOFWEEK('1998-02-03'); 


- WEEKDAY(date) : 해당 날짜에 대한 요일을 반환한다. 월요일은 0, 일요일은 6 이다. 

- 예 : select WEEKDAY('1997-10-04 22:23:00'); 


- DAYOFYEAR(date) : 해당 날짜의 1월 1일부터의 날수를 반환한다. 결과값은 1에서 366 까지이다. 

- 예 : select DAYOFYEAR('1998-02-03'); 


- YEAR(date) : 해당 날짜의 년을 반환한다. 

- 예 : select YEAR('98-02-03'); 


- MONTH(date) : 해당 날짜의 월을 반환한다. 

- 예 : select MONTH('1998-02-03'); 


- DAYOFMONTH(date) : 해당 날짜의 일을 반환한다. 결과값은 1 에서 31 까지이다. 

- 예 : select DAYOFMONTH('1998-02-03'); 


- HOUR(time) : 해당날짜의 시간을 반환한다. 결과값은 0 에서 23 이다. 

- 예 : select HOUR('10:05:03'); 


- MINUTE(time) : 해당날짜의 분을 반환한다. 결과값은 0 에서 59 이다. 

- 예 : select MINUTE('98-02-03 10:05:03'); 


- SECOND(time) : 해당날짜의 초를 반환한다. 결과값은 0 에서 59 이다. 

- 예 : select SECOND('10:05:03'); 


- DAYNAME(date) : 해당 날짜의 요일 이름을 반환한다. 일요일은 'Sunday' 이다. 

- 예 : select DAYNAME("1998-02-05"); 


- MONTHNAME(date) : 해당 날짜의 월 이름을 반환한다. 2월은 'February' 이다. 

- 예 : select MONTHNAME("1998-02-05"); 


- QUARTER(date) : 해당 날짜의 분기를 반환한다. 결과값은 1 에서 4 이다. 


- WEEK(date,first) : 1월 1일부터 해당날가지의 주 수를 반환한다. 주의 시작을 일요일부터 할경우는 두번째 인자를 0, 월요일부터 시작할 경우는 1 을 넣는다. 결과값은 1 에서 52 이다. 

- 예 : select WEEK('1998-02-20',1); 


- PERIOD_ADD(P,N) : P (형식은 YYMM 또는 YYYYMM 이어야 한다.) 에 N 만큼의 달 수를 더한값을 반환한다. 주의할것은 두번째 인자는 숫자라는 것이다. 

- 예 : select PERIOD_ADD(9801,2); 


- PERIOD_DIFF(P1,P2) : 두개의 인자 사이의 달 수를 반환한다. 두개의 인자 모두 형식은 YYMM 또는 YYYYMM 이어야 한다. 


- DATE_ADD(date,INTERVAL expr type) : 날짜를 더한 날짜를 반환한다. 

- DATE_SUB(date,INTERVAL expr type) : 날짜를 뺀 날짜를 반환한다. 

- ADDDATE(date,INTERVAL expr type) : DATE_ADD(date,INTERVAL expr type) 와 동일하다. 

- SUBDATE(date,INTERVAL expr type) : DATE_SUB(date,INTERVAL expr type) 와 동일하다. 

- EXTRACT(type FROM date) : 날짜에서 해당 부분을 추출한다. 

- 예 : SELECT DATE_ADD("1997-12-31 23:59:59", INTERVAL 1 SECOND); 

SELECT DATE_ADD("1997-12-31 23:59:59", INTERVAL 1 DAY); 

SELECT DATE_ADD("1997-12-31 23:59:59", INTERVAL "1:1" MINUTE_SECOND); 

SELECT DATE_SUB("1998-01-01 00:00:00", INTERVAL "1 1:1:1" DAY_SECOND); 

SELECT DATE_ADD("1998-01-01 00:00:00", INTERVAL "-1 10" DAY_HOUR); 

SELECT DATE_SUB("1998-01-02", INTERVAL 31 DAY); 

SELECT EXTRACT(YEAR FROM "1999-07-02"); 

SELECT EXTRACT(YEAR_MONTH FROM "1999-07-02 01:02:03"); 

SELECT EXTRACT(DAY_MINUTE FROM "1999-07-02 01:02:03"); 

- 참고 : type 에 사용되는 키워드는 SECOND, MINUTE, HOUR, DAY, MONTH, YEAR, MINUTE_SECOND, HOUR_MINUTE, DAY_HOUR, YEAR_MONTH, HOUR_SECOND, DAY_MINUTE, DAY_SECOND 이다. 

- 주의 : 계산한 달의 날수가 작을 경우는 해당달의 마지막 날을 반환한다. 예를 들어 select DATE_ADD('1998-01-30', Interval 1 month); 의 경우 1998-02-28 을 반환한다. 


- TO_DAYS(date) : 0 년 부터의 날짜수를 반환한다. 이 함수는 1582 이전 날에 대해서는 계산하지 않는다. 

- 예 : select TO_DAYS(950501); 


- FROM_DAYS(N) : 해당 숫자만큼의 날짜를 반환한다. 이 함수는 1582 이전 날에 대해서는 계산하지 않는다. 

- 예 : select FROM_DAYS(729669); 


- DATE_FORMAT(date,format) : 날짜를 해당 형식의 문자열로 변환하여 반환한다. 

- 예 : select DATE_FORMAT('1997-10-04 22:23:00', '%W %M %Y'); 

select DATE_FORMAT('1997-10-04 22:23:00', '%H:%i:%s'); 

select DATE_FORMAT('1997-10-04 22:23:00', '%D %y %a %d %m %b %j'); 

select DATE_FORMAT('1997-10-04 22:23:00', '%H %k %I %r %T %S %w'); 

- 참고 : 형식은 다음과 같다. %M (달 이름), %W (요일 이름), %Y (YYYY 형식의 년도), %y (YY 형식의 년도), %a (요일 이름의 약자), %d (DD 형식의 날짜), %e (D 형식의 날짜), %m (MM 형식의 날짜), %c (M 형식의 날짜), %H (HH 형식의 시간, 24시간 형식), %k (H 형식의 시간, 24시간 형식), %h (HH 형식의 시간, 12시간 형식), %i (MM 형식의 분), %p (AM 또는 PM) 


- TIME_FORMAT(time,format) : DATE_FORMAT(date,format) 과 같은 방식으로 사용할수 있으나 날 이상의 것에 대해서는 NULL 이나 0 을 반환한다. 


- CURDATE() : 현재날짜를 반환한다. 숫자와 연산을 할경우 숫자로 변환된다. 형식은 'YYYY-MM-DD' 또는 YYYYMMDD 이다. 

- 예 : select CURDATE(); 

select CURDATE() + 0; 


- CURTIME() : 현재시간을 반환한다. 숫자와 연산을 할경우 숫자로 변환된다. 형식은 'HH:MM:SS' 또는 HHMMSS 이다. 

- 예 : select CURTIME(); 

select CURTIME() + 0; 


- SYSDATE() : 현재날짜시간을 반환한다. 숫자와 연산을 할경우 숫자로 변환된다. 형식은 'YYYY-MM-DD HH:MM:SS' 또는 YYYYMMDDHHMMSS 이다. 

- 예 : select NOW(); 

select NOW() + 0; 


- NOW() : SYSDATE() 와 동일하다. 


- UNIX_TIMESTAMP() : '1970-01-01 00:00:00' 부터의 초를 반환한다. 인자가 주어질 경우는 해당 날짜에 대한 유닉스 시간을 반환한다. 

- 예 : select UNIX_TIMESTAMP(); 

select UNIX_TIMESTAMP('1997-10-04 22:23:00'); 


- FROM_UNIXTIME(unix_timestamp) : 유닉스시간에서 날짜 형식으로 변환한다. 

- 예 : select FROM_UNIXTIME(875996580); 


- FROM_UNIXTIME(unix_timestamp,format) : 유닉스시간을 날짜형식으로 변환하고 DATE_FORMAT(date,format) 에서 설명한 포맷으로 변환하여 반환한다. 

- 예 : select FROM_UNIXTIME(UNIX_TIMESTAMP(), '%Y %D %M %h:%i:%s %x'); 


- TIME_TO_SEC(time) : 해당 시간의 0:0:0 에서부터의 초를 반환한다. 

- 예 : select TIME_TO_SEC('22:23:00'); 


- SEC_TO_TIME(seconds) : 초를 시간으로 바꾼다. 

- 예 : select SEC_TO_TIME(2378);

'IT > MySQL' 카테고리의 다른 글

MYSQL Data type  (0) 2015.06.01
MySql auto_increment 값 알아오기.  (0) 2015.04.27
Mysql 반올림, 올림, 버림.  (0) 2015.04.20
MYSQL 에서 SP exit. 중간에 나가기.  (0) 2015.04.15
HeidiSql 사용법 정리.  (0) 2015.03.11
Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

DOM 순회 메서드 중에

parent와 parents의 차이를 적어보려고 한다.

(문득 parent를 파렌츠?라고 읽던 사람이 생각나는군.... 혹시 다른나라 발음??)

 

사용 방법

.parent([selector])

.parents([selector])

 

사용방법은 동일하나, 끝에 S로 인해 불러오는 요소가 다르다.

꼭 parent하면 한개만 가져올 것 같고

parents하면 여러개를 가져올 것 같은데..

 

차이는

parent는  (selector에 의해 필터링된) 부모요소, 즉 바로 상위 요소를 말하는 것이고

parents는 (selector에 의해 필터링된) 모든 조상요소, 상위인 모든 요소를 가져오는 것이다.

 


'IT > jquery_javascript' 카테고리의 다른 글

jquery 숫자만 입력  (0) 2015.07.17
버튼 더블 클릭 막기.  (0) 2015.05.06
jquery ajax  (0) 2015.04.16
jquery on function 함수.  (0) 2015.04.16
javascript 세자리 콤마. jquery 세자리 콤마. 정규식  (0) 2015.04.16
Posted by 당양부부34
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

Round()   -  반올림

Floor()     -  버림

Ceil()       -  올림

'IT > MySQL' 카테고리의 다른 글

MySql auto_increment 값 알아오기.  (0) 2015.04.27
Mysql 날짜 함수  (0) 2015.04.24
MYSQL 에서 SP exit. 중간에 나가기.  (0) 2015.04.15
HeidiSql 사용법 정리.  (0) 2015.03.11
mysql 설치  (0) 2013.08.16
Posted by 당양부부34

블로그 이미지
주요 토렌트를 블로깅하고 있습니다. 토렌트 순위 등은 다른 사이트를 찾아보세요. 주요 웹툰 순위도 게재했어요 경제를 좋아하는 일산의 행복한 프로그래머입니다.
당양부부34
Yesterday
Today
Total

달력

 « |  » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함