| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- httpd 2.2.32
- httpd-info.conf
- Node.js 소스 설치
- MySQL 5.1.41
- vimrc 옵션
- httpd-autoindex.conf
- jQuery
- python 3.5.10
- Node.js apache 연동
- gcc update
- Repository
- CentOS 6
- unique_id
- PHP 5.2 .ini
- mod_unique_id
- CentOS
- httpd-dav.conf
- apache 연동
- epel repository
- python 3.X 소스 설치
- CentOS 6.10
- httpd-default.conf
- MySQL
- httpd-mpm.conf
- PHP 5.2.17 .ini
- node.js
- httpd.conf
- httpd-vhosts.conf
- Mod_Security 룰 셋
- vim color scheme
- Today
- Total
목록Web Development/JavaScript (12)
곰시기's
HTMLElement.prototype.remove_ = function () { this.parentNode.removeChild(this); }
// 이전 HTMLElement.prototype.beforeElement = function (ele) { this.insertAdjacentElement("beforebegin", ele); } // 이후 HTMLElement.prototype.afterElement = function (ele) { this.insertAdjacentElement("afterend", ele); }
HTMLElement.prototype.closestClass = function (className_) { var target = this; while (!target.classList.contains(className_)) { if ("body" === target.parentNode.tagName.toLowerCase()) { return false; } target = target.parentNode; } return target; }
Ajax는 기본적으로 UTF-8로 작동하는데 이 때 서버가 EUC-KR일경우 넘겨받는 데이터가 깨질 수 있다. 이럴 때 "contentType: 'application/x-www-form-urlencoded; charset=euc-kr'"을 추가 해주면 정상적으로 값을 받아올 수 있다. $.ajax({ type: "post", url : "", data: frmData, contentType: 'application/x-www-form-urlencoded; charset=euc-kr', dataType:"json", success : function( data ) { console.log( data ); }, error: function( jqXHR, textStatus, errorThrown ) { c..