본문 바로가기

개발194

checkbox script로 체크 리스트 값 출력하기 html javascript var chk_arr = []; $("[name=codes]:checked").each(function(){ var chk = $(this).val(); chk_arr.push(chk); console.log(chk_arr); 2021. 4. 12.
a태그 다운로드 파일명 예제 " download=""> " download=""> " download=""> download 뒤에 넣은 파일명으로href 경로의 파일을 다운로드함. 2021. 4. 6.
카카오 로그인 Redirect URI 추가 KOE006 에러 developers.kakao.com/ Kakao Developers 카카오 API를 활용하여 다양한 어플리케이션을 개발해보세요. 카카오 로그인, 메시지 보내기, 친구 API, 인공지능 API 등을 제공합니다. developers.kakao.com - 개발자 센터 접속 - 로그인 - 내 어플리 케이션 - 카카오 로그인 - redirect url 추가 2021. 4. 6.
html a태그 다운로드 download 예제 소스 예제 소스 결과화면 소스 설명 a태그 href="" 에서 다운파일 링크를 확인한다. 서버에 파일 업로드 후 웹 브라우저 url로 파일 존재하는지 체크 download 옵션을 써준다. 2021. 4. 6.
네이버 개발자 센터 로고 변경 시 검수요청 안됨 해결방법 추가 요청 서류를 아무거나 눌렀다가 다시 없음으로 하면 변경을 여부를 다시 체크해서 버튼이 활성화 된다. 2021. 4. 2.
javascript input 배열 유효성검사 예제 item[] model[] sn[] pd[] 4개의 값을 갯수만큼 유효성검사 var index_data=$(\"input[name='item[]']\").length-1; for (let i = 0; i 2021. 4. 2.
script 마지막 형제 찾기 예제 children() last() console.log($('#item_list').children().last()); function delForm() { // console.log(); var length = $('#item_list').children().length; if(length>1){ console.log($('#item_list').children().last()); } } 2021. 4. 2.
php key value array push array push 1차원 배열 같은경우 아래와 같이 배열 요소를 추가할수 있다. array_push($변수명, "apple", "raspberry"); 하지만 key value 로 넣기위해선 아래와 같은 방식을 사용해야한다. $변수명["p.title"] = "제품명"; 2021. 4. 1.
구글 마커 안나옴 Error InvalidValueError: setMap: not an instance of Map; and not an instance of StreetViewPanorama error code Error InvalidValueError: setMap: not an instance of Map; and not an instance of StreetViewPanorama before code function makeGMap(lat,lng,code){ var mapdata="map"+code var latdata=lat var lngdata=lng var myLatLng = { lat:latdata, lng:lngdata }; var mapcode = new google.maps.Map(document.getElementById("map"+code), { zoom: 16, center: myLatLng }); var markercode = new google.maps.Marker.. 2021. 3. 31.
php curl header 사용 예시 비즈엠 내 잔액 확인 api function get($url, $params=array()){ $url = $url.'?'.http_build_query($params, '', '&'); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); curl_close($ch); return $response; } function getMyPoint() { return $this->get('ht.. 2021. 3. 29.
페이지 접속시 자동으로 탭 클릭하고 지정 영역으로 스크롤 이동 $( document ).ready(function() { $('#prdReview2').trigger("click"); setTimeout(function() { var location = document.querySelector("#shopTab").offsetTop; window.scrollTo({top:location, behavior:'smooth'}); }, 700); }); () () 2021. 3. 11.
facebook 링크 공유 javascript 예제 소스 2021. 2. 26.