12 2021 档案

vue 使用$http 请求接口 路径多了1个文件
摘要:需要请求/testwx/RoomType/add 路径一直报错/roomType//testwx/RoomType/add 之前是这样的写法 this.$http.post('testwx/RoomType/add', this.roomInfo).then(response => { if (re 阅读全文

posted @ 2021-12-31 17:11 左侧岚 阅读(317) 评论(0) 推荐(0) 编辑

vue 文件目录结构详解
摘要:基于 vue.js 的前端开发环境,用于前后端分离后的单页应用开发,可以在开发时使用 ES Next、scss 等最新语言特性。项目包含: 基础库: vue.js、vue-router、vuex、whatwg-fetch 编译/打包工具:webpack、babel、node-sass 单元测试工具: 阅读全文

posted @ 2021-12-31 16:40 左侧岚 阅读(330) 评论(0) 推荐(0) 编辑

nodejs Cannot set headers after they are sent to the client
摘要:1个接口不能同时操作2个表 下面这样写会报错 这儿只执行 添加成功 2 阅读全文

posted @ 2021-12-31 10:31 左侧岚 阅读(136) 评论(0) 推荐(0) 编辑

mongodb : "mongodb://127.0.0.1:27017/hotel",
摘要:mongodb : "mongodb://127.0.0.1:27017/hotel", 换成localhost失败 阅读全文

posted @ 2021-12-31 01:35 左侧岚 阅读(25) 评论(0) 推荐(0) 编辑

vue element-ui之dialog组件title插槽的使用
摘要:dialog对话框组件title属性的slot使用方法 使用背景 需要单独控制title中某个数据显示及样式,footer也一样 <el-dialog // 也可以这样写,但是没有办法单独控制name age的显示 // title="name+ '' + age" title="提示" :visi 阅读全文

posted @ 2021-12-30 18:11 左侧岚 阅读(2502) 评论(0) 推荐(0) 编辑

vue import Layout from '@/layout' @用法
摘要:vue.config.js文件 configureWebpack: { // provide the app's title in webpack's name field, so that // it can be accessed in index.html to inject the corr 阅读全文

posted @ 2021-12-30 10:40 左侧岚 阅读(1567) 评论(0) 推荐(0) 编辑

js 堆排序过程
摘要:https://segmentfault.com/a/1190000015487916 阅读全文

posted @ 2021-12-29 19:03 左侧岚 阅读(11) 评论(0) 推荐(0) 编辑

js 基数排序的过程
摘要:https://blog.csdn.net/weixin_42405980/article/details/117189939 阅读全文

posted @ 2021-12-29 17:54 左侧岚 阅读(15) 评论(0) 推荐(0) 编辑

vue 混入mixin
摘要:混入 (mixin) 提供了一种非常灵活的方式,来分发 Vue 组件中的可复用功能 用到了继承 extend 阅读全文

posted @ 2021-12-29 16:15 左侧岚 阅读(13) 评论(0) 推荐(0) 编辑

vue 计算属性 监听属性
摘要:计算属性 模板需要js计算 而不是简单的渲染 就得computed 规范 模板上只渲染 不做js操作 监听属性 当你有一些数据需要随着其它数据变动而变动时 就得watch 阅读全文

posted @ 2021-12-29 16:12 左侧岚 阅读(24) 评论(0) 推荐(0) 编辑

vue 动态class
摘要: 阅读全文

posted @ 2021-12-29 15:36 左侧岚 阅读(29) 评论(0) 推荐(0) 编辑

微信公众号 开发者文档是接口文档 在线接口调试工具 跟postman一样 微信公众平台是服务器 发布到微信公众平台官网 就可以被访问到
摘要:https://mp.weixin.qq.com/cgi-bin/frame?t=advanced/dev_tools_frame&nav=10049&token=11741802&lang=zh_CN 阅读全文

posted @ 2021-12-29 10:38 左侧岚 阅读(50) 评论(0) 推荐(0) 编辑

vue 离开当前页面 销毁定时器
摘要:mounted() { window.addEventListener('scroll', this.handleScroll) }, beforeDestroy() { window.removeEventListener('scroll', this.handleScroll) if (this 阅读全文

posted @ 2021-12-28 17:06 左侧岚 阅读(469) 评论(0) 推荐(0) 编辑

vue-router 刷新页面后 url地址不变 参数还在 保留当前页 router-link取值 this.$route
摘要:1级页面跳2级页面 2级页面跳3级页面 router-link取值 this.$route 阅读全文

posted @ 2021-12-28 11:24 左侧岚 阅读(1098) 评论(0) 推荐(0) 编辑

JavaScript 判断是否为对象 4个
摘要:1、toString() 第一选择 let obj = {} Object.prototype.toString.call(obj) '[Object Object]' 2、constructor let obj = {} obj.constructor Object 3、instanceof 注意 阅读全文

posted @ 2021-12-27 10:27 左侧岚 阅读(331) 评论(0) 推荐(0) 编辑

vue element 多级菜单 嵌套路由跳转问题
摘要:1.在二级菜单加一个<router-view></router-view>标签 (用来承载三级菜单页面) 2.在项目路由中的meta标签加一个参数开关来控制是否隐藏二级菜单页面 { path: '/structure', component: Layout, // redirect: '/permi 阅读全文

posted @ 2021-12-24 15:37 左侧岚 阅读(1683) 评论(2) 推荐(0) 编辑

vue el-input-number 不能增减
摘要:<!-- 区块生成时间 ordererBatchTimeout --> <el-form-item :label="$t('chain.ordererBatchTimeout')" prop="ordererBatchTimeout" label-width="150px" > <!-- 计数器 - 阅读全文

posted @ 2021-12-23 19:27 左侧岚 阅读(1469) 评论(0) 推荐(0) 编辑

ssh 连接报错 https://cloud.tencent.com/document/product/1207/44573#changeSSH 解绑密钥
摘要:解决 阅读全文

posted @ 2021-12-21 10:56 左侧岚 阅读(70) 评论(0) 推荐(0) 编辑

腾讯云CentOS 7 服务器之Linux系统详解
摘要:https://blog.csdn.net/weixin_33970449/article/details/88036592 阅读全文

posted @ 2021-12-20 19:37 左侧岚 阅读(33) 评论(0) 推荐(0) 编辑

运行nodejs项目,npm start启动项目import报错,SyntaxError: Cannot use import statement outside a module
摘要:$ npm start > m-mall-admin@1.0.0 start D:\SoftwareAndProgram\program\weixin\miniprogram\mini-mall\mini-mall-admin > babel-node ./bin/www (node:4488) W 阅读全文

posted @ 2021-12-20 15:53 左侧岚 阅读(687) 评论(0) 推荐(0) 编辑

启动node报错 Cannot use import statement outside a module
摘要:解决 大概意思是nodejs不支持import语法,如果要支持,需要babel来支持。 babel的安装 所以我们来安装babel吧, 有了babel, 能够使用更多高级词法! 在项目根目录下,执行: cnpm install --save babel-core cnpm install --sav 阅读全文

posted @ 2021-12-20 14:45 左侧岚 阅读(1003) 评论(0) 推荐(0) 编辑

nginx配置访问图片路径以及html静态页面的调取方法
摘要:给大家讲一个快速配置nginx访问图片地址,以及访问html静态页面的配置。 1.实验环境 首先随便某个路径下创建相应的目录。如图下 2.在里面放自定义的html或者图片。 3.nginx配置 user root; worker_processes 1; #error_log logs/error. 阅读全文

posted @ 2021-12-20 11:33 左侧岚 阅读(3314) 评论(0) 推荐(0) 编辑

vue中使用svg-icon
摘要:1 在src目录新建一个icons目录,目录结构如下 svg下面放iconfont的icon标签的svg标签文件,下下来复制粘贴即可使用 index.js文件: import Vue from 'vue' import SvgIcon from '@/components/SvgIcon'// sv 阅读全文

posted @ 2021-12-20 10:28 左侧岚 阅读(682) 评论(0) 推荐(0) 编辑

重磅:GitHub 上 100K+ Star 的前端面试开源项目汇总(进大厂必备)
摘要:https://github.com/InterviewMap/CS-Interview-Knowledge-Map建立最好的面试地图。目前的内容包括js、网络、浏览器相关、性能优化、安全性、框架、git、数据结构、算法等。 https://github.com/Advanced-Frontend/ 阅读全文

posted @ 2021-12-19 22:19 左侧岚 阅读(1016) 评论(0) 推荐(0) 编辑

部署
摘要:前言 本文讲解的是:做为前端开发人员,对服务器的了解还是小白的我,是如何一步步将 node+mongodb 项目部署在阿里云 centos 7.3 的服务器上,并进行性能优化,达到页面 1 秒内看到 loading ,3 秒内看到首屏内容的。 搭建的项目是采用了主流的前后端分离思想的,这里只讲 服务 阅读全文

posted @ 2021-12-19 22:12 左侧岚 阅读(736) 评论(0) 推荐(0) 编辑

js "a,12,b,12" 解析成 a=12 b=12
摘要:this.list.map((item) => { console.log(item, "我正在测试 时间"); item.created = parseTime(item.created); // param: "a,12" "a,12,b,12" a=12 b=12 //第一种方法 var ar 阅读全文

posted @ 2021-12-19 13:59 左侧岚 阅读(50) 评论(0) 推荐(0) 编辑

js 正则匹配指定字符串 ./reports/test.html 需要截取test.html 获取./reports/ 路径可能也会是../../../ 不管你多少个/,都会的最后一个之前的
摘要: 阅读全文

posted @ 2021-12-15 11:14 左侧岚 阅读(21) 评论(0) 推荐(0) 编辑

vue css scoped
摘要:起作用 .blockchainLoads /deep/ .el-input__inner { color: white !important; } 不起作用 .blockchainLoads .el-input .el-input__inner { color: white !important; 阅读全文

posted @ 2021-12-08 11:01 左侧岚 阅读(27) 评论(0) 推荐(0) 编辑

vue 取props的值
摘要: 阅读全文

posted @ 2021-12-07 18:27 左侧岚 阅读(473) 评论(0) 推荐(0) 编辑

vue 子调父
摘要: 阅读全文

posted @ 2021-12-07 15:04 左侧岚 阅读(25) 评论(0) 推荐(0) 编辑

Js中的防抖与节流
摘要:https://www.cnblogs.com/zsp-1064239893/p/11602479.html 阅读全文

posted @ 2021-12-06 23:25 左侧岚 阅读(18) 评论(0) 推荐(0) 编辑

原生js实现放大镜效果
摘要:https://www.cnblogs.com/zsp-1064239893/p/11220932.html 阅读全文

posted @ 2021-12-06 23:11 左侧岚 阅读(12) 评论(0) 推荐(0) 编辑

数组去重
摘要:去重 一、利用ES6中的 Set 方法去重 Array.from(new Set(arr)) ...new Set(arr) 二、使用双重for循环,再利用数组的splice方法去重(ES5常用) for (var i = 0, len = arr.length; i < len; i++) { f 阅读全文

posted @ 2021-12-06 23:10 左侧岚 阅读(27) 评论(0) 推荐(0) 编辑

清除定时器
摘要: 阅读全文

posted @ 2021-12-06 16:08 左侧岚 阅读(23) 评论(0) 推荐(0) 编辑

elementui 表单验证 每次点击弹出框的时候 必须清除表单 里的参数跟校验的参数保持一致 要不然每次点击完之后 输入有值了 但是表单验证还在 得下一次点击才没 不能实时没
摘要: 阅读全文

posted @ 2021-12-06 14:26 左侧岚 阅读(158) 评论(0) 推荐(0) 编辑

require import 区别
摘要:// require 方式 let moment = require('moment'); // import 方式 import moment from 'moment'; 阅读全文

posted @ 2021-12-03 15:14 左侧岚 阅读(30) 评论(0) 推荐(0) 编辑

vue.config.js 配置多端口代理 不起作用
摘要:"/dev-api": { // target: `http://localhost:6991/api`, target: `http://10.10.111.136:31415`, changeOrigin: true, ws: true, // secure: true, logLevel: " 阅读全文

posted @ 2021-12-02 17:41 左侧岚 阅读(823) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示