Skip to content

upgrate npm 1.x to 2.x #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 01.GettingStarted/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
</div>

</body>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js@2/dist/vue.js"></script>
<script>
// 这是我们的Model
var exampleData = {
message: 'Hello World!'
message: 'Hello World!!!'
}

// 创建一个 Vue 实例或 "ViewModel"
// 它连接 View 与 Model
new Vue({
var app = new Vue({
el: '#app',
data: exampleData
})
Expand Down
2 changes: 1 addition & 1 deletion 01.GettingStarted/simple-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</table>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
var vm = new Vue({
el: '#app',
Expand Down
2 changes: 1 addition & 1 deletion 01.GettingStarted/v-bind.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</ul>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
var vm = new Vue({
el: '#app',
Expand Down
2 changes: 1 addition & 1 deletion 01.GettingStarted/v-else.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1 v-show="name.indexOf('keep') >= 0">Name: {{ name }}</h1>
<h1 v-else>Sex: {{ sex }}</h1>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
var vm = new Vue({
el: '#app',
Expand Down
2 changes: 1 addition & 1 deletion 01.GettingStarted/v-for.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</table>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
var vm = new Vue({
el: '#app',
Expand Down
2 changes: 1 addition & 1 deletion 01.GettingStarted/v-if.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1 v-if="age >= 25">Age: {{ age }}</h1>
<h1 v-if="name.indexOf('jack') >= 0">Name: {{ name }}</h1>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js@2/dist/vue.js"></script>
<script>

var vm = new Vue({
Expand Down
2 changes: 1 addition & 1 deletion 01.GettingStarted/v-on.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</p>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
var vm = new Vue({
el: '#app',
Expand Down
2 changes: 1 addition & 1 deletion 01.GettingStarted/v-show.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1 v-show="age >= 25">Age: {{ age }}</h1>
<h1 v-show="name.indexOf('jack') >= 0">Name: {{ name }}</h1>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>

var vm = new Vue({
Expand Down
2 changes: 1 addition & 1 deletion 02.Components/Part-1/component-scope.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</div>

<!--该组件不会被渲染-->
<my-component></my-component>
<my-component>该组件不会被渲染</my-component>
</body>
<script src="js/vue.js"></script>
<script>
Expand Down