목록JavaScript (13)
메모장
# 여러 개의 Promise 동시 실행, 하나라도 거부되면 전체 거부Promise.all([function1(), function2(), function3()]).then(() => {});
https://developers.kakao.com/https://devtalk.kakao.com/// index.html// kakao// Main.vue X facebook naver web copy
npm i @rollup/plugin-inject npm i jquery webpack.conf.js(webpack) const webpackConfig = { plugins: [ ... new webpack.ProvidePlugin({ $: 'jquery', jquery: 'jquery', 'window.jQuery': 'jquery', jQuery : 'jquery' }) ] } vite.config.js(vite) import { defineConfig, loadEnv } from 'vite' import inject from '@rollup/plugin-inject' export default ({command, mode}) => { return defineConfig({ plugins: [ in..
const state = { infoSeq: '' } const mutations = { setInfoSeq (state, payload) { state.infoSeq = payload } } /** * 정보 조회 * @param commit * @param payload * @returns {Promise} */ async selectInfo ({commit}, payload) { return transmission(true, 'GET', url, payload) } const getters = { infoSeq (state) { return state.infoSeq } } computed: { infoSeq () { return store.state.infoSeq } } store.commit('se..
1) 일반 const dataSource = { api: { readData: { url: url, method: 'GET', initParams: $('#searchForm').serializeObject() } } } let pageGrid = new tui.Grid({ data: dataSource, }); 2) 페이지 제어 const dataSource = { api: { readData: { url: url, method: 'GET' } }, initialRequest: false // set to true by default } let pageGrid = new tui.Grid({ data: dataSource, }); pageGrid.readData(1, $('#searchForm').ser..
상위 컴포넌트methods: { methodName1 (data) ( ... }, methodName2 (data) { ... }, methodName3 () { this.$refs.ChildComponent.method3(data) }}하위 컴포넌트버튼1버튼2props: { propName1: {}, propName2: {}}methods: { method1 (data) { this.$emit('event1', data1) }, method2 (data) { this.$emit('event2', data2) }, method3 (data) { ... }}