Skip to content

Instantly share code, notes, and snippets.

View devjin0617's full-sized avatar
💻
저는 개발을 합니다

cheongjin kim (김청진) devjin0617

💻
저는 개발을 합니다
View GitHub Profile
(function() {
var EventBus = Vue();
Object.defineProperties(Vue.prototype, {
$eventBus: {
get: function () {
return EventBus;
}
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
npm i --save-dev expose-loader
npm i --save jquery
import 'expose-loader?$!expose-loader?jQuery!jquery'
npm i --save bootstrap
import 'expose-loader?$!expose-loader?jQuery!jquery'
// 위에서 추가했던 jQuery 밑에 코드를 작성하세요
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'
<template>
...
<button type="button" class="btn btn-primary" autocomplate="off" data-loading-text="jquery with bootstrap" @click="clickBtn">
...
</template>
<script>
export default {
name: 'jQueryApp',
methods: {
@devjin0617
devjin0617 / git.sh
Last active April 5, 2017 04:56
git정리
# git remote 에 삭제된 브런치들 갱신하는 명령어(둘 중 하나만 사용하면 됨)
$ git remote prune origin
$ git remote update --prune
@devjin0617
devjin0617 / .manifest
Created May 19, 2017 15:15
chrome extension using a content script to access the `window` object
{
"content_scripts": [
{
"matches": ["http://*/*", "https://*/*"],
"js": ["inject.js"],
"all_frames": true
}
],
"web_accessible_resources": [
"content.js"
@devjin0617
devjin0617 / settings.json
Created September 4, 2019 03:21
vscode vue lint & autofix setting file
{
"eslint.autoFixOnSave": true,
"editor.formatOnSave": true,
"files.associations": {
"*.vue": "vue"
},
"eslint.validate": [
{
"language": "javascript",
"autoFix": true