This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Ajax | |
*/ | |
function AjaxProcess(type, url, params, dataType, success, fail) { | |
this.type = type; | |
this.url = url; | |
this.params = params; | |
this.dataType = dataType; | |
this.onSuccess = success; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app">{{ message }}</div> | |
<script src="https://unpkg.com/vue"></script> | |
<script type="application/javascript"> | |
new Vue({ | |
el: '#app', | |
data: { | |
message: 'Hello Vue' | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>todo</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
</body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>todo</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
</body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>todo</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
</body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>todo</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
</body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>todo</title> | |
</head> | |
<body> | |
<div id="root"></div> | |
</body> |
OlderNewer