摘要: 优点 1.可以无需刷新页面而与服务器进行通信 2.允许你根据用户事件啦更新部分页面内容 缺点 1.没有浏览历史,不能回退 2.存在跨域问题(同源) 3.SEO不友好 阅读全文
posted @ 2020-08-04 14:15 我是木木呀 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 因为vue文件中输入了 console.log(res) 解决方法 第一步:初始化并重新安装eslint npm init -y npm install eslint --save-dev 第二步:进入node_modules下的bin目录,并初始化eslint cd ./node_modules/ 阅读全文
posted @ 2020-06-30 17:31 我是木木呀 阅读(2301) 评论(0) 推荐(0) 编辑
摘要: 1. 下载插件 npm install awe-add --save 2. 在main.js中引入使用 import VueDND from 'awe-dnd' Vue.use(VueDND) 3.demo.vue <template> <div> <el-checkbox-group v-mode 阅读全文
posted @ 2020-06-12 14:52 我是木木呀 阅读(2725) 评论(0) 推荐(0) 编辑
摘要: 跨域是浏览器为了安全而做出的限制策略,浏览器请求必须遵循同源策略:同域名、同协议、同端口 CORS跨域 :服务端设置,前端直接调用 说明:后台允许前端某个站点进行访问 (axios) JSONP跨域 : 前端适配,后台配合 前后台同时改造 npm install jsonp --save-dev j 阅读全文
posted @ 2020-06-10 16:59 我是木木呀 阅读(197) 评论(0) 推荐(0) 编辑
摘要: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! gshop-client_final@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.co 阅读全文
posted @ 2020-06-07 13:34 我是木木呀 阅读(1384) 评论(1) 推荐(0) 编辑
摘要: nasser@nasser-desktop:~/projects/server v3$ npm install simple-proxy npm WARN package.json docco@0.6.2 No repository field. npm http GET https://regis 阅读全文
posted @ 2020-06-06 20:55 我是木木呀 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 父组件给子组件传值 父组件: <template> <div id="container"> <Child :msg="data"></Child> </div> </template> <script> import Child from "@/components/Child"; export 阅读全文
posted @ 2020-05-07 15:43 我是木木呀 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1.打开这个工具的地址 https://github.com/vuejs/vue-devtools 2.按照给出的步骤一步步走 git clone git@github.com:vuejs/vue-devtools.git npm install 3.一定要看清楚你下载的代码是不是对的,我之前就因为 阅读全文
posted @ 2020-05-06 16:46 我是木木呀 阅读(1619) 评论(1) 推荐(1) 编辑
摘要: 1.常见的就是冒泡法 function bubbleSort(arr) { if (Array.isArray(arr)) { for (var i = arr.length - 1; i > 0; i--) { for (var j = 0; j < i; j++) { if (arr[j] > 阅读全文
posted @ 2020-04-21 15:39 我是木木呀 阅读(347) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="ces-search searchContent"> <el-form :size="size" :inline="true" :label-width="labelWidth"> <el-form-item v-for='item in searchF 阅读全文
posted @ 2019-12-31 14:57 我是木木呀 阅读(236) 评论(0) 推荐(0) 编辑