-
@@ -11,7 +11,7 @@ export default {
data() {
return {
routerListData: []
- }
+ };
},
mounted() {
if (this.$router
@@ -21,7 +21,7 @@ export default {
this.routerListData = this.$router.options.routes;
}
}
-}
+};
diff --git a/src/components/bottom-tip.vue b/src/components/bottom-tip.vue
index 3ca3fb8..e1d5563 100644
--- a/src/components/bottom-tip.vue
+++ b/src/components/bottom-tip.vue
@@ -1,181 +1,186 @@
-
+
\ No newline at end of file
diff --git a/src/components/drop-down-refresh.vue b/src/components/drop-down-refresh.vue
index 8255dc7..f546b20 100644
--- a/src/components/drop-down-refresh.vue
+++ b/src/components/drop-down-refresh.vue
@@ -1,149 +1,155 @@
-
+
diff --git a/src/plugins/tools.js b/src/plugins/tools.js
index 6ed943b..40ffa85 100644
--- a/src/plugins/tools.js
+++ b/src/plugins/tools.js
@@ -1,29 +1,34 @@
-var baseTool = {
- simpleClone:function(obj) {
- return JSON.parse(JSON.stringify(obj))
- },
- simpleExtend:function(to, from) {
- var arr = [];
- arr.forEach.call(arr.slice.call(arguments, 1), function(source) {
- if (source) {
- for (var prop in source) {
+/**
+ * @file tools 工具类
+ */
+let baseTool = {
+ simpleClone(obj) {
+ return JSON.parse(JSON.stringify(obj));
+ },
+ simpleExtend(to, from) {
+ let arr = [];
+ arr.forEach.call(arr.slice.call(arguments, 1), function (source) {
+ if (source) {
+ for (let prop in source) {
to[prop] = source[prop];
}
}
+
});
- return to;
- },
- //todo: 传入的对象数组被赋值为对象了
- deepCopy:function (obj) {
- if (typeof obj !== 'object') {
- return obj;
- }
- var newobj = {};
- for (var attr in obj) {
- newobj[attr] = baseTool.deepCopy(obj[attr]);
- }
- return newobj;
- },
-}
-export default baseTool;
\ No newline at end of file
+ return to;
+ },
+ // todo: 传入的对象数组被赋值为对象了
+ deepCopy(obj) {
+ if (typeof obj !== 'object') {
+ return obj;
+ }
+
+ let newobj = {};
+ for (let attr in obj) {
+ newobj[attr] = baseTool.deepCopy(obj[attr]);
+ }
+ return newobj;
+ }
+};
+export default baseTool;
diff --git a/src/router/index.js b/src/router/index.js
index 1bd82ce..2541a64 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,3 +1,6 @@
+/**
+ * @file route index.js
+ */
import Vue from 'vue';
import Router from 'vue-router';
import HelloWorld from '@/components/HelloWorld';
@@ -10,114 +13,142 @@ import Copy from '@/views/copy.vue';
import ChangeDatas from '@/views/changeDatas.vue';
import CssTest from '@/views/cssTest.vue';
import WholeLife from '@/views/wholeLife.vue';
-// import Extend from '@/views/extend.vue';
+import Extend from '@/views/extend.vue';
import ExpendCard from '@/views/expendCard.vue';
import VueQuillEditor from '@/views/vueQuillEditor.vue';
import Wechat from '@/views/wechat.vue';
import CssTestPhone from '@/views/cssTestPhone.vue';
import Tree from '@/views/tree.vue';
-// import Currying from '@/views/currying.vue';
+import Currying from '@/views/currying.vue';
import Proxy from '@/views/proxy.vue';
+import Tabindex from '@/views/tabindex.vue';
+import LeetCode from '@/views/leetCode.vue';
+import JsDbclick from '@/views/jsdbclick.vue';
+import MixBlendMode from '@/views/mixblendmode.vue';
-Vue.use(Router)
+Vue.use(Router);
export default new Router({
- mode:'history',
- routes: [
- {
- path: '/',
- name: 'HelloWorld',
- component: HelloWorld
- },
- {
- path: '/highLight.html',
- name: 'HighLight',
- component: HighLight
- },
- {
- path: '/pure.html',
- name: 'Pure',
- component: Pure
- },
- {
- path: '/pureModel.html',
- name: 'PureModel',
- component: PureModel
- },
- {
- path: '/jsTest.html',
- name: 'JsTest',
- component: JsTest
- },
- {
- path: '/countDown.html',
- name: 'CountDown',
- component: CountDown
- },
- {
- path: '/copy.html',
- name: 'Copy',
- component: Copy,
- showInfo: 'Copy & Paste'
- },
- {
- path: '/changeDatas.html',
- name: 'ChangeDatas',
- component: ChangeDatas
- },
- {
- path: '/cssTest.html',
- name: 'CssTest',
- component: CssTest
- },
- {
- path: '/cssTestPhone.html',
- name: 'CssTestPhone',
- component: CssTestPhone
- },
- {
- path: '/wholeLife.html',
- name: 'WholeLife',
- component: WholeLife
- },
- // {
- // path: '/extend.html',
- // name: 'Extend',
- // component: Extend
- // },
- {
- path: '/expendCard.html',
- name: 'ExpendCard',
- component: ExpendCard
- },
- {
- path: '/quillEditor.html',
- name: 'VueQuillEditor',
- component: VueQuillEditor
- },
- {
- path: '/wechat.html',
- name: 'Wechat',
- component: Wechat,
- showInfo: 'WechatQrCode'
- },
- {
- path: '/tree.html',
- name: 'Tree',
- component: Tree,
- showInfo: '用 iView 实现 Tree'
- },
- // {
- // path: '/currying.html',
- // name: 'Currying',
- // component: Currying,
- // showInfo: '手动实现 bind/call/apply/Currying'
- // },
- {
- path: '/proxy.html',
- name: 'Proxy',
- component: Proxy,
- showInfo: 'Proxy 的使用'
- }
- ]
-})
+ mode: 'history',
+ routes: [
+ {
+ path: '/',
+ name: 'HelloWorld',
+ component: HelloWorld
+ },
+ {
+ path: '/highLight.html',
+ name: 'HighLight',
+ component: HighLight
+ },
+ {
+ path: '/pure.html',
+ name: 'Pure',
+ component: Pure
+ },
+ {
+ path: '/pureModel.html',
+ name: 'PureModel',
+ component: PureModel
+ },
+ {
+ path: '/jsTest.html',
+ name: 'JsTest',
+ component: JsTest
+ },
+ {
+ path: '/countDown.html',
+ name: 'CountDown',
+ component: CountDown
+ },
+ {
+ path: '/copy.html',
+ name: 'Copy',
+ component: Copy,
+ showInfo: 'Copy & Paste'
+ },
+ {
+ path: '/changeDatas.html',
+ name: 'ChangeDatas',
+ component: ChangeDatas
+ },
+ {
+ path: '/cssTest.html',
+ name: 'CssTest',
+ component: CssTest
+ },
+ {
+ path: '/cssTestPhone.html',
+ name: 'CssTestPhone',
+ component: CssTestPhone
+ },
+ {
+ path: '/wholeLife.html',
+ name: 'WholeLife',
+ component: WholeLife
+ },
+ {
+ path: '/extend.html',
+ name: 'Extend',
+ component: Extend
+ },
+ {
+ path: '/expendCard.html',
+ name: 'ExpendCard',
+ component: ExpendCard
+ },
+ {
+ path: '/quillEditor.html',
+ name: 'VueQuillEditor',
+ component: VueQuillEditor
+ },
+ {
+ path: '/wechat.html',
+ name: 'Wechat',
+ component: Wechat,
+ showInfo: 'WechatQrCode'
+ },
+ {
+ path: '/tree.html',
+ name: 'Tree',
+ component: Tree,
+ showInfo: '用 iView 实现 Tree'
+ },
+ {
+ path: '/currying.html',
+ name: 'Currying',
+ component: Currying,
+ showInfo: '手动实现 bind/call/apply/Currying'
+ },
+ {
+ path: '/proxy.html',
+ name: 'Proxy',
+ component: Proxy,
+ showInfo: 'Proxy 的使用'
+ },
+ {
+ path: '/tabindex.html',
+ name: 'Tabindex',
+ component: Tabindex,
+ showInfo: 'HTML tabindex 的使用'
+ },
+ {
+ path: '/leetcode.html',
+ name: 'LeetCode',
+ component: LeetCode,
+ showInfo: 'leetCode做题记录'
+ },
+ {
+ path: '/jsbinddbclick.html',
+ name: 'JsBindDbclick&Click',
+ component: JsDbclick,
+ showInfo: 'JS 同时绑定单击&双击事件'
+ },
+ {
+ path: '/mixblendmode.html',
+ name: 'MixBlendMode',
+ component: MixBlendMode,
+ showInfo: 'css mix-blend-mode 混合模式'
+ }
+ ]
+});
diff --git a/src/test/pure.vue b/src/test/pure.vue
index 691504e..be34696 100644
--- a/src/test/pure.vue
+++ b/src/test/pure.vue
@@ -8,7 +8,7 @@