-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
49 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// test js file | ||
|
||
console.log('test valval') | ||
alert('gogogo') | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,9 @@ | ||
<html> | ||
<head> | ||
<title>valval template power by vue</title> | ||
<title>valval</title> | ||
<script src="/static/demo.js"></script> | ||
</head> | ||
<body> | ||
<!-- created by valval --> | ||
<div id="valapp"> | ||
|
||
<h1>{{ data.name }}</h1> | ||
<h2>{{ data.age }}</h2> | ||
<h3 v-if="data.sex">male</h3> | ||
<h3 v-else>female</h3> | ||
|
||
</div> | ||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.0"></script> | ||
<script> | ||
vue = new Vue({ | ||
el: '#valapp', | ||
data: function() { | ||
return { | ||
data: { | ||
name: 'Lucy', | ||
age: 13, | ||
sex: false, | ||
} | ||
} | ||
} | ||
}) | ||
</script> | ||
<body> | ||
<h1>Hello world</h1> | ||
</body> | ||
|
||
</html> |
This file contains 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
This file contains 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