일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- mysql 기초문법
- 데이터베이스 생성 예제
- 백엔드
- 웹앱 구현
- 정보처리기능사
- C# 문법
- 리눅스 마스터 1급 필기
- 웹 앱 만드는법
- c#
- C# SELCT
- 웹 앱 개발
- 리눅스 마스터 1급 합격 후기
- 리눅스마스터 1급 실기
- 산업제어시스템 보안
- 제어시스템 보안
- 리눅스마스터 1급 필기
- MySQL
- 웹 개발
- 리눅스 마스터 1급 실기
- node.js
- 산업제어시스템
- 리눅스 마스터 2급 실기
- 리눅스마스터
- Vue.js
- C#\
- 프론트엔드
- html
- 웹 구현
- C# SELECT 문
- C# 문법 기초
- Today
- Total
목록Vue.js (5)
보안 루피
export default { data() { return { productId: 0, productDetail: {}, productImage: [], total: 0, totalPrice: 0 }; }, created() { this.productId = this.$route.query.product_id; this.getProductDetail(); this.getProductImage(); }, methods: { calculatePrice(cnt) { let total = this.total + cnt; if (total 0) { this.productDetail = productDetail[0]; this.totalPrice = this.totalPrice = this.productDetail..
목록 강아지 고양이 조류 {{ product.product_name }} {{ product.category1 }} {{ product.category2 }} {{ product.category3 }} 장바구니 담기 주문하기 {{ product.product_price }}원 export default { data() { return { productList: [] }; }, created() { this.getProductList(); }, methods: { async getProductList() { this.productList = await this.$api("/api/productList", {}); //app.js 에 api타고 맞는 sql문 결과값 가져옴 console.log(this.pr..
import { createRouter, createWebHistory } from 'vue-router' import ProductList from '../views/ProductList.vue' import ProductDetail from '../views/ProductDetail.vue' import ProductCreate from '../views/ProductCreate.vue' const routes = [ { path: '/', name: 'home', component: ProductList }, { path: '/create', name: 'Create', component: ProductCreate }, { path: '/detail', // 또는 '/ProductDetail'로 수..
import {createStore} from 'vuex' const store = createStore({ state(){ return{ user:{} } }, mutations:{ user(state,data){ state.user = data; } } }) export default store; vue.js의 상태 관리를 구성하는부분 state: 애플리케이션의 상태를 저장하는 객체입니다. 여기에서는 user 속성을 정의하여 사용자 정보를 저장합니다. mutations: 상태를 변경하는 로직이 정의된 객체입니다. 여기에서는 user 뮤테이션을 정의하여 state.user를 업데이트합니다.
// 필요한 모듈을 가져옵니다 const express = require('express'); const app = express(); const session = require('express-session'); const fs = require('fs'); // 세션 미들웨어 설정 app.use(session({ secret: 'secret code', resave: false, saveUninitialized: false, cookie: { secure: false, maxAge: 1000 * 60 * 60 } })); // JSON 미들웨어 설정 (크기 제한 증가) app.use(express.json({ limit: '50mb' })); // 데이터베이스 구성 const db = { databa..