diff --git "a/\346\236\227\345\215\216\351\223\255/Shopping.html" "b/\346\236\227\345\215\216\351\223\255/Shopping.html" new file mode 100644 index 0000000000000000000000000000000000000000..98c1ec57660dc069ddd207f851d142a031a81c80 --- /dev/null +++ "b/\346\236\227\345\215\216\351\223\255/Shopping.html" @@ -0,0 +1,71 @@ + + + + + + 购物车 + + + +
+ +
+ 很干净的购物车吼吼! +
+
+ + + + \ No newline at end of file diff --git "a/\346\236\227\345\215\216\351\223\255/css/style.css" "b/\346\236\227\345\215\216\351\223\255/css/style.css" new file mode 100644 index 0000000000000000000000000000000000000000..dbb329abb09f2961bc231419b8bf107d404252dc --- /dev/null +++ "b/\346\236\227\345\215\216\351\223\255/css/style.css" @@ -0,0 +1,28 @@ +[v-cloak] { + display: none; + } + + #app { + width: 500px; + margin: 0 auto; + } + + table { + width: 100%; + border: 1px solid #444; + border-collapse: collapse; + } + + th, td { + padding: 8px 16px; + border: 1px solid #444; + text-align: left; + } + + th { + background: #89abd3; + color: rgb(214, 224, 235); + font-weight: 600; + white-space: nowrap; + } + \ No newline at end of file diff --git "a/\346\236\227\345\215\216\351\223\255/index.js" "b/\346\236\227\345\215\216\351\223\255/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..ea23209057980d626b46b54aceaeb4d4df7a2093 --- /dev/null +++ "b/\346\236\227\345\215\216\351\223\255/index.js" @@ -0,0 +1,110 @@ +var app = new Vue({ + el:'#app', + data:{ + list:[ + { + id:1, + name:'谢汶霖', + price:'20', + count:1 + }, + { + id:2, + name:'谢学长', + price:'50', + count:1 + }, + { + id:3, + name:'谢学姐', + price:'20000', + count:1 + }, + ], + List:[] + }, + //默认全选 + mounted: function () { + this.checkAll(); + this.checkAllElement(document.querySelector(".checkAll")); + }, + computed:{ + totalPrice:function(){ + var total = 0 ; + for(var i = 0 ; i + + + + + Document + + +
+ +
+ + + + \ No newline at end of file diff --git "a/\346\236\227\345\215\216\351\223\255/vue/index2.html" "b/\346\236\227\345\215\216\351\223\255/vue/index2.html" new file mode 100644 index 0000000000000000000000000000000000000000..74fa4f073496681a4e657282e2737f092cf14c46 --- /dev/null +++ "b/\346\236\227\345\215\216\351\223\255/vue/index2.html" @@ -0,0 +1,107 @@ + + + + + + Document + + + +
+ + + +

111111

+

22222

+

3333333

+ + + +
+

abc

+
+
+

cba

+
+
+

321

+
+
+

屑屑屑

+

汶霖

+ 刷新 +
+
+ + + + \ No newline at end of file diff --git "a/\346\236\227\345\215\216\351\223\255/vue/\346\225\260\347\273\204\346\233\264\346\226\260.html" "b/\346\236\227\345\215\216\351\223\255/vue/\346\225\260\347\273\204\346\233\264\346\226\260.html" new file mode 100644 index 0000000000000000000000000000000000000000..c8ca1f1ad5842e8d00df373a4527e1802f3fb5a2 --- /dev/null +++ "b/\346\236\227\345\215\216\351\223\255/vue/\346\225\260\347\273\204\346\233\264\346\226\260.html" @@ -0,0 +1,45 @@ + + + + + + Document + + +
+ +
+ + + diff --git "a/\346\236\227\345\215\216\351\223\255/vue/\350\277\207\346\273\244\344\270\216\346\216\222\345\272\217.html" "b/\346\236\227\345\215\216\351\223\255/vue/\350\277\207\346\273\244\344\270\216\346\216\222\345\272\217.html" new file mode 100644 index 0000000000000000000000000000000000000000..8789cc6b2a878ce17b334968dea8d49ef59bb9f5 --- /dev/null +++ "b/\346\236\227\345\215\216\351\223\255/vue/\350\277\207\346\273\244\344\270\216\346\216\222\345\272\217.html" @@ -0,0 +1,50 @@ + + + + + + Document + + +
+ +
+ + + + \ No newline at end of file