Error

[JavaScript] Bootstrap-Select 관련 ** bootstrap-select https://developer.snapappointments.com/bootstrap-select/ 1) $().selectpicker()는 $(document).ready() 안에 선언해야 한다. 밖에 선언할 경우 아래와 같은 오류 발생한다. 2) bootstrap-select는 아직까지 bootstrap4를 완벽히 지원하지 않는다고 한다. [#2109] elements with .form-control class don't adjust height properly since Bootstrap 4.1.3 -> bootstrap4의 js 파일이 아닌 css 파일이 제대로 적용되지 않는 것 같다. -> css는..
· WEB/Electron
[Electron] Access to XMLHttpRequest at '' from origin '' has been blocked by CORS policy 에러 해결 방법 Access to XMLHttpRequest at '...' from origin '...' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. 위 에러는 HTTP 접근제어(CORS)에서 볼 수 있듯이 보안 상의 이유로, 스크립트 내에서 초기화되는 cross-origin HTTP 요청을 제한함으로써 발생된 오류이다. 에러를 제거하기 위해서 웹 보안(same-origin정책)을 해제하면 된..
· WEB/Electron
[Electron] electron 버전 업그레이드 2018년에 설치 했을 때 버전이 1.X 버전이었는데, 어느새 5.0.0 버전이 나왔다. electron 4.X 버전 부터인가 node 10버전 이상 이용하기 때문에 ES6를 babel을 사용하지 않고도 대부분의 명령어를 사용할 수 있다고 한다. * 여기서 릴리즈 버전을 확인할 수 있다. electron 최신 버전으로 업그레이드 명령어는 다음과 같다. 설치하는데 시간이 좀 걸린다. $ npm install electron@latest -g C:\WINDOWS\system32>npm install electron@latest -g C:\Users\itinerant\AppData\Roaming\npm\electron -> C:\Users\itinerant\..
· WEB/Electron
[Electron] build 시 unresolved modules 오류 해결 방법 Electron Build 할 때 아래와 같이 jQuery, popper 등 오류날 경우 > build Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead. Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead. • electron-builder version=20.3..
· WEB/PHP
[PHP] MySQL Database 접속 확인 코드 에러와 함께 연결되었는지 결과를 보여주는 코드이다. $link = mysql_connect("localhost", "user", "password"); if (!$link) { die('Could not connect: ' . mysql_error() . ' ' . mysql_errno()); } else { echo "connected"; }
· WEB/Electron
[Electron] Dialog 메인(Main) 프로세스 const { dialog } = require('electron') 렌더러(Renderer) 프로세스 const { dialog } = require('electron').remote dialog.showOpenDialog([browserWindow, ]options[, callback])파일 열기 다이얼로그 dialog.showSaveDialog([browserWindow, ]options[, callback])파일 저장 다이얼로그 dialog.showMessageBox([browserWindow, ]options[, callback])메세지 박스 dialog.showErrorBox(title, content)에러 메세지 박스 -> alert을..
S0PH1A
'Error' 태그의 글 목록 (2 Page)