[Node.js] ๋ฌด์ ์ฌ ์ํ ์ฌ์ ๊ณ ์๋ฆผ ๋ง๋ค๊ธฐ (ver 1.1) :: ์ฝ๋ฉ ๊ณต๋ถ ์ผ์ง (tistory.com)
[Node.js] ๋ฌด์ ์ฌ ์ํ ์ฌ์ ๊ณ ์๋ฆผ ๋ง๋ค๊ธฐ (ver 1.1)
<์ด์ ver 1.0 ๊ฐ๋ฐ ํฌ์คํ > https://cocoon1787.tistory.com/741 [Node.js] Node + Kakao API๋ก ์ํ ์ฌ์ ๊ณ ์๋ฆผ ๋ง๋ค๊ธฐ (ver 1.0) ๐ ์ด์ ๋ ์ด ์ฌ์ฌ ์ถ์์ง๊ธฐ ์์ํ๋ ๊ฒ ๊ฐ๊ณ ํจ๋ฉ๋ ์ข ํ์ํด์ ๋ฌด์ ์ฌ์..
cocoon1787.tistory.com
๊ฐ๋ฐ ๊ฐ์ด๋ | Kakao Developers ๋ฌธ์
Kakao Developers
์นด์นด์ค API๋ฅผ ํ์ฉํ์ฌ ๋ค์ํ ์ดํ๋ฆฌ์ผ์ด์ ์ ๊ฐ๋ฐํด๋ณด์ธ์. ์นด์นด์ค ๋ก๊ทธ์ธ, ๋ฉ์์ง ๋ณด๋ด๊ธฐ, ์น๊ตฌ API, ์ธ๊ณต์ง๋ฅ API ๋ฑ์ ์ ๊ณตํฉ๋๋ค.
developers.kakao.com
jQuery
jQuery
What is jQuery? jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
jquery.com
Downloading jQuery using npm or Yarn
jQuery is registered as a package on npm. You can install the latest version of jQuery with the npm CLI command:
npm install jquery
Ajax
Call a local script on the server /api/getWeather with the query parameter zipcode=97201 and replace the element #weather-temp's html with the returned text.
$.ajax({
url: "/api/getWeather",
data: {
zipcode: 97201
},
success: function( result ) {
$( "#weather-temp" ).html( "<strong>" + result + "</strong> degrees" );
}
});
jQuery.ajax() | jQuery API Documentation
Description: Perform an asynchronous HTTP (Ajax) request. The $.ajax() function underlies all Ajax requests sent by jQuery. It is often unnecessary to directly call this function, as several higher-level alternatives like $.get() and .load() are available
api.jquery.com
Examples:
Save some data to the server and notify the user once it's complete.
$.ajax({
method: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
})
.done(function( msg ) {
alert( "Data Saved: " + msg );
});
AJAX ์ฝ๋ ์๋จ์๋ ์์ฒญ์ ๋ํ ์ ๋ณด๊ฐ ๋ค์ด๊ฐ๋ค.
<script>
$.ajax({
method: "POST", //์ ์ก๋ฐฉ์
url: "some.php", //์ ์ก์ฃผ์
data: { name: "John", location: "Boston" }, //๋ณด๋ผ ๋ฐ์ดํฐ
}).done(function (msg) {
alert("Data Saved: " + msg);
});
done ์ดํ์๋ ์์ฒญ์ ๋ํ ์๋ต์ด ์ค๋ฉด ์๋ต์ ๊ฐ์ง๊ณ ์ด๋ค ์ฒ๋ฆฌ๋ฅผ ํ๋ ์ฝ๋๊ฐ ๋ค์ด๊ฐ๊ฒ ๋๋ค.
</script>
'Javascript > Javascript' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์๋ฐ์คํฌ๋ฆฝํธ] ๋ฐ๋๋ผ ์๋ฐ์คํฌ๋ฆฝํธ ๊ฐฌ์ฑ (0) | 2022.05.10 |
---|---|
[์๋ฐ์คํฌ๋ฆฝํธ] module ์ฌ์ฉ๋ฒ 3๊ฐ์ง (0) | 2022.05.09 |
[์๋ฐ์คํฌ๋ฆฝํธ] how to set query in url javascript (0) | 2022.05.06 |
์๋ฐ์คํฌ๋ฆฝํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ชฉ๋ก (0) | 2022.05.03 |
[์๋ฐ์คํฌ๋ฆฝํธ] for๋ฌธ๊ณผ foreach ์ค์ ์์ ๋น๊ต (0) | 2022.04.30 |