摘要:
vue history模式下 找到tomcat 的安装目录 然后依次打开 conf=>server.xml在 <Host></Host> 中间添加 rewrite 到这里页面应该可以访问了 但是现在有个问题就是只要一刷新页面 就会404 配置tomcat 在webapps 文件夹下找到打包的项目(h 阅读全文
摘要:
安装依赖:npm install @vue/babel-preset-jsx @vue/babel-helper-vue-jsx-merge-props# oryarn add @vue/babel-preset-jsx @vue/babel-helper-vue-jsx-merge-props配置 阅读全文
摘要:
// Vue.config.js 配置选项 module.exports = { // 选项 // 基本路径 publicPath: "./", // 构建时的输出目录 outputDir: "dist", // 放置静态资源的目录 assetsDir: "static", // html 的输出路 阅读全文
摘要:
<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale= 阅读全文
摘要:
// 设置隐藏属性和改变可见属性的事件的名称 var hidden, visibilityChange; if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and later support hid 阅读全文
摘要:
function closeWindow() { var browserName = navigator.appName; if(browserName == 'Netscape') { var opened = window.open('about:blank','_self'); opened. 阅读全文
摘要:
/** * 将url文件下载到本地 * @param fileUrl {String} 文件链接 * @param fileName {String} 文件名字 * @return void */ async function downloadFile(fileUrl,fileName) { let 阅读全文
摘要:
Non-function value encountered for default slot. Prefer function slots问题原因:Vue3 使用h函数 推荐使用函数式插槽,以便获得更佳的性能。 解决方式:// 错误return h(xxx, { xxx }, { xxx});// 阅读全文
摘要:
平时使用阿里巴巴的iconfont字体需要下载字体到本地或通过网址引入字体才能使用,但有些情况可能不允许这么做,例如小程序与平常web开发中引入字体图标的方式不一样,必须先转为base64再引入,以下介绍iconfont字体转base64并引入使用的方法 一、去官网 http://iconfont. 阅读全文
摘要:
-c-1是禁用缓存的意思,其他可选配置如下: -p 要使用的端口(默认为8080) -a 要使用的地址(默认为0.0.0.0) -d 显示目录列表(默认为“True”) -i 显示autoIndex(默认为“True”) -g或–gzip启用时(默认为“False”),它将用于./public/so 阅读全文