<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>sammy_bbang2.log</title>
        <link>https://velog.io/</link>
        <description>Hi</description>
        <lastBuildDate>Tue, 01 Mar 2022 11:14:19 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <image>
            <title>sammy_bbang2.log</title>
            <url>https://images.velog.io/images/sammy_bbang2/profile/e00fe3bd-43ac-48c6-8467-319cb993c4ae/social.jpeg</url>
            <link>https://velog.io/</link>
        </image>
        <copyright>Copyright (C) 2019. sammy_bbang2.log. All rights reserved.</copyright>
        <atom:link href="https://v2.velog.io/rss/sammy_bbang2" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[앱개발 2-2주차]]></title>
            <link>https://velog.io/@sammy_bbang2/%EC%95%B1%EA%B0%9C%EB%B0%9C-2-2%EC%A3%BC%EC%B0%A8</link>
            <guid>https://velog.io/@sammy_bbang2/%EC%95%B1%EA%B0%9C%EB%B0%9C-2-2%EC%A3%BC%EC%B0%A8</guid>
            <pubDate>Tue, 01 Mar 2022 11:14:19 GMT</pubDate>
            <description><![CDATA[<ol>
<li>flex
import React from &#39;react&#39;;
import { StyleSheet, Text, View } from &#39;react-native&#39;;</li>
</ol>
<p>export default function App() {
  return (
    <View style={styles.container}>
      <View style={styles.containerOne}></p>
<pre><code>  &lt;/View&gt;
  &lt;View style={styles.containerTwo}&gt;

  &lt;/View&gt;
&lt;/View&gt;</code></pre><p>  );
}</p>
<p>const styles = StyleSheet.create({
  container: {
    flex:1 
  },
  // 컨테이너 1,2 를 포함하는 컨테이너 부모
  여기서 flex : 1 은 전체 화면을 뜻함
  containerOne: {
    flex:1,
    backgroundColor:&quot;red&quot;
  },
  containerTwo:{
    flex:2,
    backgroundColor:&quot;yellow&quot;
  }
});
// 원,투에서의 flex는 부모의 부분을 1:2의 비율로 가져갔음.을 의미
1-2. flex 예시 두번째
import React from &#39;react&#39;;
import { StyleSheet, Text, View } from &#39;react-native&#39;;</p>
<p>export default function App() {
  return (
    <View style={styles.container}> 
  // 다른 컨테이너들을 포함하는 틀
      <View style={styles.containerOne}></p>
<pre><code>  &lt;/View&gt;
  &lt;View style={styles.containerTwo}&gt;
    &lt;View style={styles.innerOne}&gt;

    &lt;/View&gt;
    &lt;View style={styles.innerTwo}&gt;

    &lt;/View&gt;
    // 컨테이너투 안에 또 다른 이너(영역)생성. 따라서 화면에 나타날 때 컨테이너 투 영역안에서 이너들끼리 영역을 나눔을 의미.

  &lt;/View&gt;
&lt;/View&gt;</code></pre><p>  );
}</p>
<p>const styles = StyleSheet.create({
  container: {
    flex:1
  },
  containerOne: {
    flex:1,
    backgroundColor:&quot;red&quot;
  },
  containerTwo:{
    flex:2,
    backgroundColor:&quot;yellow&quot;
  },
  innerOne: {
    flex:1,
    backgroundColor:&quot;blue&quot;
  },
  innerTwo: {
    flex:4,
    backgroundColor:&quot;orange&quot;
  }
});
2. flexDirection
=영역을 나누는 방향 (좌우로 나눌지, 상하로 나눌지)
import React from &#39;react&#39;;
import { StyleSheet, Text, View } from &#39;react-native&#39;;</p>
<p>export default function App() {
  return (
    <View style={styles.container}>
      <View style={styles.containerOne}></p>
<pre><code>  &lt;/View&gt;
  &lt;View style={styles.containerTwo}&gt;
    &lt;View style={styles.innerOne}&gt;

    &lt;/View&gt;
    &lt;View style={styles.innerTwo}&gt;

    &lt;/View&gt;

  &lt;/View&gt;
&lt;/View&gt;</code></pre><p>  );
}</p>
<p>const styles = StyleSheet.create({
  container: {
    flex:1
  },
  containerOne: {
    flex:1,
    backgroundColor:&quot;red&quot;
  },
  containerTwo:{
    flex:2,
    flexDirection:&quot;row&quot;,
    // row = 부모영역 안에 있는 자식(inner)들을 좌우로 나누겠다.
    column = 상하로 나눔 &lt;사실 기본값이라서 상하로 나눌 때 flexDirection 쓰지 않아도 저절로 나뉨&gt;
    backgroundColor:&quot;yellow&quot;
  },
  innerOne: {
    flex:1,
    backgroundColor:&quot;blue&quot;
  },
  innerTwo: {
    flex:4,
    backgroundColor:&quot;orange&quot;
  }
});
3. justifyContent = 컨텐츠를 어디에 두냐를 결정
import React from &#39;react&#39;;
import { StyleSheet, Text, View } from &#39;react-native&#39;;</p>
<p>export default function App() {
  return (
    <View style={styles.container}>
      <View style={styles.containerOne}></p>
<pre><code>  &lt;/View&gt;
  &lt;View style={styles.containerTwo}&gt;
    &lt;View style={styles.innerOne}&gt;

    &lt;/View&gt;
    &lt;View style={styles.innerTwo}&gt;
      &lt;Text&gt;!!컨텐츠!!&lt;/Text&gt;
    &lt;/View&gt;

  &lt;/View&gt;
&lt;/View&gt;</code></pre><p>  );
}</p>
<p>const styles = StyleSheet.create({
  container: {
    flex:1
  },
  containerOne: {
    flex:1,
    backgroundColor:&quot;red&quot;
  },
  containerTwo:{
    flex:2,
    flexDirection:&quot;row&quot;,
    backgroundColor:&quot;yellow&quot;
  },
  innerOne: {
    flex:1,
    backgroundColor:&quot;blue&quot;
  },
  innerTwo: {
    flex:4,
    justifyContent:&quot;flex-start&quot;,
    //&quot;flex-end&quot;(하,우),&quot;flex-start&quot;(상,좌),&quot;center&quot; 컨텐트에서 자주쓰이는 값.
    //현재 flexDirection : &quot;column&quot; 기본값 상하
    //좌우로 영역을 나누고 싶을 때는 &quot;row&quot; 사용, 이 경우 flex-end = 우 flex=start = 좌
    backgroundColor:&quot;orange&quot;</p>
<p>});
4. alignItems = flexDirection과 반대 방향으로 컨텐츠를 둠
flexDirection = &quot;row&quot;
alignItems = &quot;flex-start&quot; 
//좌우로 영역을 나눴지만 컨텐츠는 상하로 움직임
영역에서 특정부분만 방향을 바꾸고 싶을 때 요긴하게 사용됨</p>
<p>import React from &#39;react&#39;;
import { StyleSheet, Text, View } from &#39;react-native&#39;;</p>
<p>export default function App() {
  return (
    <View style={styles.container}>
      <View style={styles.containerOne}></p>
<pre><code>  &lt;/View&gt;
  &lt;View style={styles.containerTwo}&gt;
    &lt;View style={styles.innerOne}&gt;

    &lt;/View&gt;
    &lt;View style={styles.innerTwo}&gt;
      &lt;View style={styles.content}&gt;&lt;/View&gt;
    &lt;/View&gt;

  &lt;/View&gt;
&lt;/View&gt;</code></pre><p>  );
}</p>
<p>const styles = StyleSheet.create({
  container: {
    flex:1
  },
  containerOne: {
    flex:1,
    backgroundColor:&quot;red&quot;
  },
  containerTwo:{
    flex:2,
    flexDirection:&quot;row&quot;,
    backgroundColor:&quot;yellow&quot;
  },
  innerOne: {
    flex:1,
    backgroundColor:&quot;blue&quot;
  },
  innerTwo: {
    flex:4,
    backgroundColor:&quot;orange&quot;,
    alignItems:&quot;flex-end&quot;
  },
  content: {
    width:50,
    height:50,
    backgroundColor:&quot;#000&quot;
  }
});</p>
]]></description>
        </item>
        <item>
            <title><![CDATA[앱개발 2주차]]></title>
            <link>https://velog.io/@sammy_bbang2/%EC%95%B1%EA%B0%9C%EB%B0%9C-2%EC%A3%BC%EC%B0%A8</link>
            <guid>https://velog.io/@sammy_bbang2/%EC%95%B1%EA%B0%9C%EB%B0%9C-2%EC%A3%BC%EC%B0%A8</guid>
            <pubDate>Tue, 01 Mar 2022 10:35:18 GMT</pubDate>
            <description><![CDATA[<p>react native 공식사이트 사용하면 tag 자세히 알 수 있음.</p>
<ol>
<li>ScrollView
import React from &#39;react&#39;;
import { StyleSheet, Text, View, ScrollView } from &#39;react-native&#39;;</li>
</ol>
<p>export default function App() {
  return (
    <ScrollView style={styles.container}>
      <View style={styles.textContainer}>
        <Text style={styles.textStyle}>영역을 충분히 갖는 텍스트 입니다!</Text>
      </View>
      <View style={styles.textContainer}>
        <Text style={styles.textStyle}>영역을 충분히 갖는 텍스트 입니다!</Text>
      </View>
      <View style={styles.textContainer}>
        <Text style={styles.textStyle}>영역을 충분히 갖는 텍스트 입니다!</Text>
      </View>
      <View style={styles.textContainer}>
        <Text style={styles.textStyle}>영역을 충분히 갖는 텍스트 입니다!</Text>
      </View>
      <View style={styles.textContainer}>
        <Text style={styles.textStyle}>영역을 충분히 갖는 텍스트 입니다!</Text>
      </View>
      <View style={styles.textContainer}>
        <Text style={styles.textStyle}>영역을 충분히 갖는 텍스트 입니다!</Text>
      </View>
      <View style={styles.textContainer}>
        <Text style={styles.textStyle}>영역을 충분히 갖는 텍스트 입니다!</Text>
      </View>
    </ScrollView>
  );
}</p>
<p>const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: &#39;#fff&#39;,
  },
  textContainer: {
    height:100,
    borderColor:&#39;#000&#39;,
    borderWidth:1,
    borderRadius:10,
    margin:10,
  },
  textStyle: {
    textAlign:&quot;center&quot;
  }
});</p>
<ol start="2">
<li>Button tag
import React from &#39;react&#39;;
import { StyleSheet, Text, View, Button, Alert } from &#39;react-native&#39;;</li>
</ol>
<p>export default function App() {
  return (
    <View style={styles.container}>
      <View style={styles.textContainer}>
        <Text style={styles.textStyle}>아래 버튼을 눌러주세요</Text>
        {/* 버튼 onPress 속성에 일반 함수를 연결 할 수 있습니다. <em>/}
        &lt;Button 
          style={styles.buttonStyle} 
          title=&quot;버튼입니다 &quot;
          color=&quot;#f194ff&quot; 
          onPress={function(){
            Alert.alert(&#39;팝업 알람입니다!!&#39;)
          }}
        /&gt;
        {/</em> ES6 문법으로 배웠던 화살표 함수로 연결 할 수도 있습니다. */}
        &lt;Button 
            style={styles.buttonStyle} 
            title=&quot;버튼입니다 &quot;
            color=&quot;#FF0000&quot; 
            onPress={()=&gt;{
              Alert.alert(&#39;팝업 알람입니다!!&#39;)
            }}
          /&gt;
          </View>
    </View>
  );
}</p>
<p>const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: &#39;#fff&#39;,
  },
  textContainer: {
    height:100,
    margin:10,
  },
  textStyle: {
    textAlign:&quot;center&quot;
  },
});</p>
<ol start="3">
<li>TouchableOpacity tag = 영역처럼 나뉘었는데 온버튼을 설정하여 클릭했을 때 어떠한 기능을 실행할 수 있음(자주 사용됨.)
예시) 카카오톡 채팅방 목록 -&gt; 클릭 시 채팅방이 열림
import React from &#39;react&#39;;
import { StyleSheet, Text, View, ScrollView, TouchableOpacity, Alert } from &#39;react-native&#39;;</li>
</ol>
<p>export default function App() {
  const customAlert = () =&gt; {
    Alert.alert(&quot;TouchableOpacity에도 onPress 속성이 있습니다&quot;)
  }
  return (
    <ScrollView style={styles.container}>
      <TouchableOpacity style={styles.textContainer} onPress={customAlert}>
        <Text style={styles.textStyle}>영역을 충분히 갖는 텍스트 입니다!</Text>
      </TouchableOpacity>
  );
}</p>
<p>const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: &#39;#fff&#39;,
  },
  textContainer: {
    height:100,
    borderColor:&#39;#000&#39;,
    borderWidth:1,
    borderRadius:10,
    margin:10,
  },
  textStyle: {
    textAlign:&quot;center&quot;
  }
});</p>
<ol start="4">
<li>Image tag(외부 이미지)
   import React from &#39;react&#39;;
import { StyleSheet, Text, View, Image } from &#39;react-native&#39;;
//이렇게 상단에 가져와 사용할 이미지를 불러옵니다
import favicon from &quot;./assets/favicon.png&quot;</li>
</ol>
<p>export default function App() {
  return (
    <View style={styles.container}>
            {/<em>이미지 태그 soruce 부분에 가져온 미지 이름을 넣습니다 */}
      &lt;Image 
        source={{uri:&#39;<a href="https://images.unsplash.com/photo-1424819827928-55f0c8497861?fit=crop&amp;w=600&amp;h=600%27&#39;%7D%7D">https://images.unsplash.com/photo-1424819827928-55f0c8497861?fit=crop&amp;w=600&amp;h=600%27&#39;}}</a>
                // 사용설명서에 나와 있는 resizeMode 속성 값을 그대로 넣어 적용합니다
    *줄이 너무 길 경우, alt + z 혹은 option + z 줄바뀜</em>
        resizeMode={&quot;cover&quot;}
        style={styles.imageStyle}
      /&gt;
    </View>
  );
}</p>
<p>const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: &#39;#fff&#39;,
    //혹시 미리 궁금하신 분들을 위해 언급하자면,
    //justifyContent와 alignContent는 영역 안에 있는 콘텐츠들을 정렬합니다
    justifyContent:&quot;center&quot;,
    alignContent:&quot;center&quot;
  },
  imageStyle: {
    width:&quot;100%&quot;,
    height:&quot;100%&quot;,
    alignItems:&quot;center&quot;,
    justifyContent:&quot;center&quot;
  }
});
     5. 자주 사용되는 스타일 속성
      import React from &#39;react&#39;;
import { StyleSheet, Text, View, Image } from &#39;react-native&#39;;</p>
<p>export default function App() {
  return (
    <View style={styles.container}>
      <View style={styles.textContainer}>
        <Text style={styles.textStyle}>스파르타 코딩클럽!!</Text>
      </View>
    </View>
  );
}</p>
<p>const styles = StyleSheet.create({
  container: {
    //영역을 잡는 속성입니다. 따로 자세히 다룹니다.
    //flex: 1은 전체 화면을 가져간다는 뜻입니다
    flex: 1,
    //영역의 배경 색을 결정합니다
    backgroundColor: &#39;#fff&#39;,
    //아래 두 속성은 영역 안의 컨텐츠들의 배치를 결정합니다. 
    //flex를 자세히 다룰때 같이 자세히 다룹니다
    justifyContent:&quot;center&quot;,
    alignContent:&quot;center&quot;
  },
  textContainer: {
    //영역의 바깥 공간 이격을 뜻합니다(하단 이미지 참조)
    margin:10,
    //영역 안의 컨텐츠 이격 공간을 뜻합니다(하단 이미지 참조)
    padding: 10,
    //테두리의 구부러짐을 결정합니다. 지금 보면 조금 둥글죠?
    borderRadius:10,
    //테두리의 두께를 결정합니다
    borderWidth:2,
    //테두리 색을 결정합니다
    borderColor:&quot;#000&quot;,
    //테구리 스타일을 결정합니다. 실선은 solid 입니다
    borderStyle:&quot;dotted&quot;,</p>
<p>  },
  textStyle: {
    //글자 색을 결정합니다. rgb, 값 이름, 색상코드 모두 가능합니다
    color:&quot;red&quot;,
    //글자의 크기를 결정합니다
    fontSize:20,
    //글자의 두께를 결정합니다
    fontWeight:&quot;700&quot;,
    //가로기준으로 글자의 위치를 결정합니다
    textAlign:&quot;center&quot;
  }
});</p>
]]></description>
        </item>
        <item>
            <title><![CDATA[Jquery,ajax]]></title>
            <link>https://velog.io/@sammy_bbang2/Jqueryajax</link>
            <guid>https://velog.io/@sammy_bbang2/Jqueryajax</guid>
            <pubDate>Wed, 05 Jan 2022 12:11:06 GMT</pubDate>
            <description><![CDATA[<p>2주차 코딩 수업</p>
<ol>
<li>Jquery
jquery 는 javascript를 미리 작성해둔 것, 라이브러리.</li>
</ol>
<p>1) input 박스의 값 가져오기</p>
<ul>
<li>id값 입력 후 val()로 값을 가져옴.
$(&#39;#id&#39;).val();</li>
</ul>
<p>2) div 보이기/숨기기</p>
<ul>
<li>보이기 (=css의 display : none;)
$(&#39;#id&#39;).show();</li>
<li>숨기기 (=css의 display : block;)
$(&#39;#id&#39;).hide();</li>
</ul>
<p>3) 태그 내 텍스트 입력
(1) input box의 경우
$(&#39;#id&#39;).val(&#39;텍스트 입력하면 됨!&#39;);</p>
<p>(2) 다른 것들 - ex) 버튼 텍스트 
$(&#39;#id&#39;).text(&#39;버튼 누르기&#39;);</p>
<p>4) 태그 내 html 입력</p>
<ul>
<li>버튼 넣기
let temp_html = <code>&lt;button&gt;추가 버튼!&lt;/button&gt;</code>;
$(&#39;#id&#39;).append(temp_html);</li>
</ul>
<p>5) 포스팅 박스 열기 버튼에 function 달기</p>
<script>
function openclose() {
  //jquery 입력
  }
</script>

<p>//onclick 속성
<button onclick="openclose()" class= "btn btn-primary btn-lg">포스팅박스 열기</button></p>
<p>(1) 클릭으로 포스팅 박스 여닫기</p>
<ul>
<li>포스팅 박스에 id값 주기</li>
<li>포스팅 박스 제어 ex) id=&quot;post-box&quot; 
function openclose() {<pre><code>if($(&#39;#post-box&#39;).css(&#39;display&#39;)==&#39;block&#39;) {
   $(&#39;#post-box&#39;).hide();
} else {
  $(&#39;#post-box&#39;).show);
}</code></pre>  }<ul>
<li>post box 시작부터 감추려면 css의 display: none;</li>
</ul>
</li>
</ul>
<p>(2) &#39;포스팅박스 열기&#39; 버튼의 글씨 바꾸기</p>
<ul>
<li>포스팅 박스 열기 버튼에 id값 주기</li>
<li>버튼 텍스트 바꾸기
function openclose() {
  if($(&#39;#post-box&#39;).css(&#39;display&#39;)== &#39;block&#39;) {<pre><code>  $(&#39;#post-box&#39;).hide();
  $(&#39;#post-box&#39;).text(&#39;포스팅박스 열기&#39;);</code></pre>  } else {
  $(&#39;#post-box&#39;).show();
  $(&#39;#post-box&#39;).text(&#39;포스팅박스 닫기&#39;);
  }
}</li>
</ul>
<p>6) Quiz1.
  (1) input-q1의 입력값 가져오기
  (2) 입력칸 빈칸이면 경고메세지 아니면 입력값 띄우기</p>
<p>function q1() {
    let value = $(&#39;#input-q1&#39;).val();
    if (value == &#39;&#39;) {
        alert(&#39;입력하세요!&#39;);
    } else {
        alert(value);
    }
}
Quiz2.
  (1) input-q2의 입력값 가져오기
  (2) 값에 @가 있으면 도메인만 추출 ex. <a href="mailto:abc@defg.hij">abc@defg.hij</a> 중         defg만 추출해 alert 띄우기
  (3) 이메일이 아닐 경우 &#39;이메일이 아닙니다.&#39; alert 띄우기</p>
<p>funtion q2() {
    let email = $(&#39;#input-q2&#39;).val();
    if(email.includes(&#39;@&#39;)) {
    let domain = email.split(&#39;@&#39;)[1].split(&#39;.&#39;)[0];
    alert(domain);
    } else {
    alert(&#39;이메일이 아닙니다!&#39;);
    }
}
Quiz3.
  (1) input-q3의 값 가져오기
  (2) 값을 이용해 names-q3에 붙일 태그 만들기.
  (3) 만들어둔 temp_html을 names-q3에 붙이고 내부 태그는       모두 비움</p>
<p>function q3() {
 let name = $(&#39;#input-q3&#39;).val();
  if(name == &#39;&#39;) {
      alert(&#39;이름을 입력하세요&#39;)
    return;
  } 
  let temp_html = <code>&lt;li&gt;${name}&lt;/li&gt;</code>;
  $(&#39;#names-q3&#39;).append(temp_html);
}
function q3_remove() {
 $(&#39;#names-q3&#39;).empty();
}</p>
<ol start="2">
<li>ajax
1) 기본 골격
$.ajax({
 type: &quot;GET&quot;, - GET 방식 요청
 url: &quot;url입력&quot;, 
 data: {}, - 요청하면서 함께 줄 데이터 (GET 요청 시 비움)
 success: function(response) { - 서버에서 준 결과를 response 라는 변수에 담음
 console.log(response)
 }
})</li>
</ol>
<ul>
<li><p>GET, url 뒤에 주소를 붙여 데이터를 가짐
POST, data: {}에 넣어서 데이터를 가짐
ex) data: {param: &#39;value&#39;,param2:&#39;value2&#39;},
2) 연습</p>
<script>
function q1() {
 $('#names-q1').empty()
 $.ajax({
    type: "GET",
    url:
"http://spartacodingclub.shop/sparta_api/seoulbike",
    data: {},
    success: function (response) {
      let rows = response['getStationList']['row']
      for (let i = 0; i <rows.length; i++) {
           let st_name = rows[i]['stationName']
           let rtc = rows[i]['rackTotCnt']
         let park_tc = rows[i['parkingBikeTotCnt']

           let temp_html = ``
           if (park_tc < 5) {
           temp_html= `<tr class = "status">
                       <td>${st_name}</td>
                       <td>${rtc}</td>
                       <td>${park_tc}</td>
                            </tr>`
          } else {temp_html = `<tr>
                               <td>${st_name}</td>
                               <td>${rtc}</td>
                               <td>${park_tc}</td>
                              </tr>`}
  $('#names-q1').append(temp_html)
                      }
                  }
                  }
      }
  </script>
<p>3) 연습 2</p>
  <script>
   function q1() {
     $.ajax({
         type: "GET",
         url: "https://api.thecatapi.com/v1/images/search",
         data: {},
         success: function (response){
            let imgurl = response[0]['url']
             $("#img-cat").attr("src",imgurl)
                }
           })
    }
  </script>
<p>4) 연습 3</p>
   <script>
      function q1() {
          $('#names-q1').empty()
          $.ajax({
             type: "GET",
             url: "http://openapi.seoul.go.kr:8088/6d4d776b466c656533356a4b4b5872/json/RealtimeCityAir/1/99",
             data: {},
             success: function (response) {
                let rows = response['RealtimeCityAir']['row']
                for (let i = 0; i < rows.length; i++) {

                  let gu_name = rows[i]['MSRSTE_NM']
                  let gu_mise = rows[i]['IDEX_MVL']

                  let temp_html=``
                    if (gu_mise > 70) {
                   temp_html = `<li class="bad">${gu_name} : ${gu_mise}</li>`
                    } else {
                   temp_html = `<li>${gu_name} : ${gu_mise}</li>`
                 }
                    $('#names-q1').append(temp_html)
                      }
                    }
                }
          )
      }
  </script>
<p>5) 로딩 후 호출</p>
<p>$(ducument).ready(function() {</p>
<pre><code>alert(&#39;로딩 끝!&#39;)</code></pre><p>});</p>
<p>ex) </p>
<p>  $(ducument).ready(function() {</p>
<pre><code>get_rate();</code></pre><p>});</p>
<p>function get_rate() {</p>
<pre><code>$.ajax({
    type: &quot;GET&quot;,
    url: &quot;url입력&quot;,
    data: {},
    success: function (response) {
      let now_rate = response[&#39;rate&#39;];
      $(&#39;#now_rate&#39;).text(now_rate);    </code></pre><p>}
})
}</p>
</li>
</ul>
<p>2주차 여전히 배움의 즐거움 가득이다.
다음주도 그러길 바라며...코딩력 + 1</p>
]]></description>
        </item>
        <item>
            <title><![CDATA[코딩의 시작.]]></title>
            <link>https://velog.io/@sammy_bbang2/%EC%BD%94%EB%94%A9%EC%9D%98-%EC%8B%9C%EC%9E%91</link>
            <guid>https://velog.io/@sammy_bbang2/%EC%BD%94%EB%94%A9%EC%9D%98-%EC%8B%9C%EC%9E%91</guid>
            <pubDate>Fri, 31 Dec 2021 08:04:23 GMT</pubDate>
            <description><![CDATA[<!doctype html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<pre><code>&lt;!-- Bootstrap CSS --&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css&quot;
      integrity=&quot;sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm&quot; crossorigin=&quot;anonymous&quot;&gt;

&lt;!-- Optional JavaScript --&gt;
&lt;!-- jQuery first, then Popper.js, then Bootstrap JS --&gt;
&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js&quot;
        integrity=&quot;sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q&quot;
        crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js&quot;
        integrity=&quot;sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl&quot;
        crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;

&lt;title&gt;스파르타코딩클럽 | 부트스트랩 연습하기&lt;/title&gt;
&lt;style&gt;
    .introduction {
        width: 500px;
        margin: auto;
    }

    .title_01 {
        font-size: 28px;
    }

    .name {
        margin: auto;
        width: 500px;
    }

    .quantity {
        width: 500px;
        margin: auto;
    }

    .adress {
        margin: 15px auto 15px auto;
        width: 500px;
    }

    .number {
        margin: auto;
        width: 500px;
    }

    .order {
        margin: auto;
        width: 90px;
        border-radius: 10px;
    }

    * {
        font-family: &#39;Dokdo&#39;, cursive;
        font-family: &#39;Poor Story&#39;, cursive;
        font-family: &#39;Yeon Sung&#39;, cursive;
    }
&lt;/style&gt;
&lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.googleapis.com&quot;&gt;
&lt;link rel=&quot;preconnect&quot; href=&quot;https://fonts.gstatic.com&quot; crossorigin&gt;
&lt;link href=&quot;https://fonts.googleapis.com/css2?family=Dokdo&amp;family=Poor+Story&amp;family=Yeon+Sung&amp;display=swap&quot;
      rel=&quot;stylesheet&quot;&gt;</code></pre></head>

<body>
<div class="img_taylor">
    <img src="http://img.danawa.com/prod_img/500000/329/300/img/3300329_1.jpg?shrink=500:500&_v=20200323163615"
         style="display: block; margin: 0 auto;height: 400px"/>
</div>
<div class="introduction">
    <h1 class="title_01"> 100년의 전통, 테일러 푸룬 <span style="font-size: 20px">가격: 4500원/개</span></h1>
    <p> 부드럽게 맛있는 풍부한 자연 에너지로 변비 잘가! 건강 웰컴!</p>
</div>
<div class="name">
    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text" id="inputGroup-sizing-default">주문자 이름</span>
        </div>
        <input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
    </div>
</div>
<div class="quantity">
    <div class="input-group-prepend">
        <label class="input-group-text" for="inputGroupSelect01">수량</label>
        <select class="custom-select" id="inputGroupSelect01">
            <option selected>--수량을 선택하세요--</option>
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
        </select>
    </div>
</div>
<div class="adress">
    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text" id="inputGroup-sizing-default">주소</span>
        </div>
        <input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
    </div>
</div>
<div class="number">
    <div class="input-group mb-3">
        <div class="input-group-prepend">
            <span class="input-group-text" id="inputGroup-sizing-default">전화번호</span>
        </div>
        <input type="text" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default">
    </div>
</div>
<div class="order">
    <button type="button" class="btn btn-primary">주문하기</button>
</div>
</body>

</html>


<p>1주차 코딩 숙제를 마쳤다. 
역시 뭐든 처음은 재미있다. :)
이 즐거움이 계속되길... 
Happy New Year!</p>
]]></description>
        </item>
    </channel>
</rss>