logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

mysql删除数据表遇到错误#1064(42000)

在linux mysql下执行drop table table_name命令时遇到ERROR 1064 (42000): You have an error in your SQL syntax;check the manual that corresponds to your MySQL server version for the right syntax to use near 't...

在sublime text3上使用Vue格式化插件

在安装完Package Control插件之后,用使用CTRL + SHIFT + P快捷键调出面板,输入package control或者install联想调出选择Package Control:Install Package搜索prettify 选择HTML-CSS-JS-Prettify,点击安装安装完成之后打开配置文件 set node path:在配置文件gl...

Vue / React /浏览器中全局获得 nodejs 环境进程 process 变量

配置目标在开发过程中经常在node环境中配置 process 配置以判断开发环境,除了 process.env.NODE_ENV 在vue中获取,由于浏览器脱离了node环境使得无法使用node中的一些模块,包括 process等信息,在浏览中获取process 对象会得到一个奇怪的对象。plugins 配置webpack 提供了一个 DefinePlugin 的插chaji...

Vue 大型项目热更新优化

优化目的当项目路由和组件文件变多,在开发时的 hot reload 变得缓慢,和 react native 真机调试有的一拼,严重影响到开发效率。定义组件 improt 和 require 方法使用插件 dynamic-import-node添加npm依赖到 --save-dev ,npm install babel-plugin-dynamic-import-node --save...

Vue 使用 Echart 折线图如何添加百分比

在vue中引用// vue文件中引入echarts工具let echarts = require('echarts/lib/echarts')require('echarts/lib/chart/line')// 以下的组件按需引入require('echarts/lib/component/tooltip')// tooltip组件require('echarts/li...

vue2中设置全局变量的最简单方法

在入口文件main.js中定义vue属性值:let a = {b:'bbb',c:'ccc'}Vue.prototype.$http = axios;Vue.prototype.$host = 'http://idol.fibonacci-tech.com/';Vue.prototype.$moment = moment;Vue.prototype.$a = ...

Vetur 格式化 js-beautify setting 换行配置

默认格式化添加分号编辑 setting -> users -> settings.json//去掉JavaScript 自动添加分号"vetur.format.defaultFormatter.js": "vscode-typescript",.vue 文件组件自动换行"vetur.format.defaultFormatterOptions": {"j...

Vue : Custom elements in iteration require 'v-bind:key' directives.

使用element-ui 去遍历路由做侧边栏,eslint 检测出现一个错误 ⚠️Vue : Custom elements in iteration require ‘v-bind:key’ directives.<template v-for="(item,index) in $router.options.routes" v-if="!item.h

ElementUI之table排序

elementui是一套非常好用的ui框架,经常用于与vue搭配使用。其中有一个table组件,以下对其排序属性做下笔记。为了简洁我就写在注释里了。 <script src="//unpkg.com/vue/dist/vue.js"></script><script src="//unpkg.com

在Mac上使用brew安装python2.x 和 python3.x共存

Homebrew 是macOS 缺少套件的管理工具,能快速方便安装各类软件和环境,我们用它来实现Python2.x 和 Python3的版本共存。brew安装打开Mac终端输入:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"...

#python
到底了