vue基础知识

 

 11

问题

vue如何响应数组的变化?

解答

通过拦截数组的方法进行响应

参见:https://www.cnblogs.com/ming1025/p/13082822.html

 

 

设置Web页面基本路径

通常,web应用程序静态页面的基本路径是http://localhost:8080/

要修改基本路径为http://localhost:8080/html/,方法如下:

在vue.config.js中增加以下配置项:

 

 

module.exports = {

  publicPath: '/html/'

}

 

 

posted on 2020-08-01 09:53  micemik  阅读(66)  评论(0编辑  收藏  举报

导航