[TOC] 创建新项目初始化 node_modules不需要动 public不动 src中在assets中创建css js 和img文件夹 router文件夹中的index.js只保留一个home的路由配置 App.vue只留五行代码即可 Home.vue删掉后创新的 vue的ajax插件: axi ...
分类:
其他好文 时间:
2019-12-29 20:17:45
阅读次数:
360
一、简介 Nodemon是一个非常好用的工具,它可以帮助开发者实现服务的自动重启。在服务端开发中,开发者经常会去修改文件然后进行调试,每次修改完如果需要人为去重新启动服务的话,非常浪费精力和时间。Nodemon这个工具正好提供了重启服务的功能,非常方便。 二、项目 还是采用上篇文章创建的项目为例,如 ...
分类:
其他好文 时间:
2019-12-29 00:22:20
阅读次数:
211
一、简介 在之前学习的React开发中,一直使用create-react-app脚手架创建和开发Web项目,通过搭配ReactRouter路由实现静态页面的交互,然后通过yarn start或npm start来启动项目,这个启动过程是由客户端服务器执行的。使用express脚手架生成的应用可以作为 ...
分类:
Web程序 时间:
2019-12-28 13:17:27
阅读次数:
80
MountVolume.SetUp failed for volume "pvc-a2754739-cf6f-11e7-a7a5-02e985942c89" :
rbd: map failed exit status 2 2017-11-22 12:35:53.503224 7f0753c66100 -1 did not load config file,
using default settings. libkmod: ERROR ../libkmod/libkmod.c:586 kmod_search_moddep:
could not open moddep file ‘/lib/modules/4.9.45-rancher/modules.dep.bin‘ modinfo: ERROR:
Module alias rbd not found. modprobe:
ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file
‘/lib/modules/4.9.45-ra
分类:
其他好文 时间:
2019-12-28 10:05:59
阅读次数:
186
tomcat在加载 项目是报错 Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modules 报错 原因就是:需要用到tomcat7.0以上的tomcat服务!!!! ...
分类:
编程语言 时间:
2019-12-28 09:54:45
阅读次数:
52
首先在cmd中输入指令,ECharts 和 zrender 安装完成会放在node_modules目录下可以直接在项目代码中 require('echarts') 得到 ECharts npm install echarts --save 之后直接页面使用Echarts HTML代码 <templa ...
分类:
其他好文 时间:
2019-12-27 16:37:25
阅读次数:
79
import Vue from 'vue'import Vuex from 'vuex'import getters from './getters' Vue.use(Vuex) const modulesFiles = require.context('./modules', true, /\.j ...
分类:
其他好文 时间:
2019-12-27 13:44:13
阅读次数:
106
ES6 模块与 CommonJS 模块存在以下差异: 1、CommonJS 模块输出的是一个值的拷贝,ES6 模块输出的是值的引用 CommonJS 模块输出的是值的拷贝,也就是说,一旦输出一个值,模块内部的变化就影响不到这个值。 ES6 Modules 的运行机制与 CommonJS 不一样。JS ...
分类:
Web程序 时间:
2019-12-26 19:29:53
阅读次数:
104
来源:https://www.layui.com/doc/modules/laydate.html#type (function () { angular .module('common-dir') .directive('dirDatepicker', function () { return { ...
分类:
其他好文 时间:
2019-12-26 19:23:38
阅读次数:
119
Python3 MySQL 数据库连接 - PyMySQL 驱动 参考教程https://www.runoob.com/python3/python3-mysql.html 以及PyMySQL文档https://pymysql.readthedocs.io/en/latest/modules/cur ...
分类:
数据库 时间:
2019-12-26 17:38:59
阅读次数:
89