Skip to content

Instantly share code, notes, and snippets.

View smobile-jspark's full-sized avatar

박정수 smobile-jspark

  • smobile
  • Bundang, Korea
View GitHub Profile
@smobile-jspark
smobile-jspark / Svn2Git.md
Created September 13, 2018 09:58 — forked from ikaruce/Svn2Git.md
SVN에서 Git으로 전환하기(브랜치와 태그 보전하면서)
@smobile-jspark
smobile-jspark / user.js
Created April 15, 2017 11:56 — forked from EtienneR/user.js
XMLHttpRequest RESTful (GET, POST, PUT, DELETE)
// Get all users
var url = "http://localhost:8080/api/v1/users";
var xhr = new XMLHttpRequest()
xhr.open('GET', url, true)
xhr.onload = function () {
var users = JSON.parse(xhr.responseText);
if (xhr.readyState == 4 && xhr.status == "200") {
console.table(users);
} else {
console.error(users);