Skip to content

Instantly share code, notes, and snippets.

/**
* Ajax
*/
function AjaxProcess(type, url, params, dataType, success, fail) {
this.type = type;
this.url = url;
this.params = params;
this.dataType = dataType;
this.onSuccess = success;
function AjaxProcess (server) {
this._server = server;
}
AjaxProcess.prototype._ajax = function(obj){
$.ajax(obj);
};
AjaxProcess.prototype.get = function(path, params, dataType, success, error) {
if (!path || !dataType) {
<div id="app">{{ message }}</div>
<script src="https://unpkg.com/vue"></script>
<script type="application/javascript">
new Vue({
el: '#app',
data: {
message: 'Hello Vue'
}
});
@rosd89
rosd89 / sam.vue-study.step1-2.html
Created June 24, 2017 07:13
sam.vue-study.step1-2.html
<div id="app">
<span v-if="message.length > 0">{{ message }}</span>
</div>
<script src="https://unpkg.com/vue"></script>
<script type="application/javascript">
new Vue({
el: '#app',
data: {
message: 'Hello Vue'
<div id="app">
<ul>
<li v-for="member in members">{{ member.name }} - {{ member.age }}</li>
</ul>
</div>
<script src="https://unpkg.com/vue"></script>
<script type="application/javascript">
new Vue({
el: '#app',
@rosd89
rosd89 / vue_todo_1.html
Last active August 22, 2017 12:10
Vue·tiful Korea 170823 컴포넌트야 놀자
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>todo</title>
</head>
<body>
<div id="root"></div>
</body>
@rosd89
rosd89 / vue_todo_2.html
Last active August 22, 2017 12:11
Vue·tiful Korea 170823 컴포넌트야 놀자
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>todo</title>
</head>
<body>
<div id="root"></div>
</body>
@rosd89
rosd89 / vue_todo_3.html
Last active August 22, 2017 12:11
Vue·tiful Korea 170823 컴포넌트야 놀자
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>todo</title>
</head>
<body>
<div id="root"></div>
</body>
@rosd89
rosd89 / vue_todo_4.html
Last active August 22, 2017 12:11
Vue·tiful Korea 170823 컴포넌트야 놀자
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>todo</title>
</head>
<body>
<div id="root"></div>
</body>
@rosd89
rosd89 / vue_todo_5.html
Last active August 22, 2017 12:11
Vue·tiful Korea 170823 컴포넌트야 놀자
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>todo</title>
</head>
<body>
<div id="root"></div>
</body>