描述:重新编写一个组件 1.1 编写一个PrintName.vue <!--这里是模板 --> <template> <div class="hello"> <h1>{{ msg }}</h1> </div> </template> <script> export default { // 本组件名称 name: "PrintName", // function data…
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="fmt" uri=&…
api20180803.vue emitted value instead of an instance of error the scope attribute for scoped slots have been deprecated and replaced by “slot scope” since 2.5. the new “slot scope” attribute can also be used on plain elements in addition to <template…
转载:https://blog.csdn.net/yudiandemingzi/article/details/80247137 怎么结合的: 一.启动项目 第一步:cmd进入项目文件里,运行npm run dev  启动项目    这里说明启动端口号是8080 第二步:往页面输入:localhost:8080 二.解析渲染步骤 先看整体框架样式和index.html: 从上面我们可以看出,index的body中只有一个id为app的div,那是如何被渲染的呢.一步一步寻找 第一步:main.j…
当我们需要和后台分离部署的时候,必须配置config/index.js: 用vue-cli 自动构建的目录里面  (环境变量及其基本变量的配置) var path = require('path') module.exports = { build: { index: path.resolve(__dirname, 'dist/index.html'), assetsRoot: path.resolve(__dirname, 'dist'), assetsSubDirectory: 'stati…
当我们需要和后台分离部署的时候,必须配置config/index.js: 用vue-cli 自动构建的目录里面  (环境变量及其基本变量的配置) var path = require('path') module.exports = { build: { index: path.resolve(__dirname, 'dist/index.html'), assetsRoot: path.resolve(__dirname, 'dist'), assetsSubDirectory: 'stati…
config/indexjs详解上代码: 'use strict' // Template version: 1.3.1 // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', // 代理…
Nginx安装时Warning: File `src/core/nginx.h' has modification time 1.2e+07 s in the future问题的解决方法 问题场景: 解压文件:tar -zxvf nginx-1.7.4.tar.gz nginx-1.7.4/ nginx-1.7.4/auto/ nginx-1.7.4/conf/ tar: nginx-1.7.4/auto: time stamp 2014-08-05 19:13:10 is 12165186.0…
Poi can easily launch an index.js file simply by running the poi command. This will launch a dev-server and automatically reload whenever you make changes. You can also npm install any package you need and import it right away. Install: npm install -…
在vue.js 框架搭建好后,其vue-cli 自动构建的目录里面相关环境变量及其基本变量配置,如下代码所示: module.exports = { build: { index: path.resolve(__dirname, '../dist/index.html'), assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', assetsPublicPath: '/', productionS…