Javascript add a tag to http url word (http url 에 a tag 추가) 공유 링크 만들기 Facebook X Pinterest 이메일 기타 앱 - 5월 04, 2018 function addATagToHttpUrl(text) { return text.replace(/\bhttp\S+/g, function (x) { return "<a target='_blank' href='" + x + "'>" + x + "</a>"; }); } 공유 링크 만들기 Facebook X Pinterest 이메일 기타 앱 댓글
javascript loop sample - 1월 02, 2020 var i = 1 ; list . forEach ( function ( item ) { console . log ( item ); item . ranking = i ++; }); var obj = { a: 1 , b: 2 , c: 3 }; for ( var key in obj ) { console . log ( key , obj [ key ]); } 자세한 내용 보기
Visual Studio Code How to find a file by file name on Macbook - 4월 14, 2022 Visual Studio Code How to find a file by file name on Macbook command + p append : to go to line or @ to go to symbol ex) app.js:50 // go to line 50 in app.js file ex) app.js@path // go to symbol path in app.js file 자세한 내용 보기
express 로 sunnyforpv.kr 웹서버 만들기 - 9월 09, 2025 express --view=ejs sunnyforpv.kr cd sunnyforpv.kr yarn install yarn upgrade # write .env PORT=8092 TZ=Asia/Seoul pm2 start sunnyforpv.config.js pm2 restart all -i max pm2 list # check web app curl http://127.0.0.1:8092 # write nginx conf server { listen 80; server_name sunnyforpv.kr www.sunnyforpv.kr; root /home/eoullim/server/sunnyforpv.kr; location / { proxy_pass http://127.0.0.1:8092; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } } sudo certbot --nginx -d sunnyforpv.kr -d www.sunnyforpv.kr sudo systemctl restart nginx 자세한 내용 보기
댓글
댓글 쓰기