摘要: jdk 配置 新建系统变量JAVA_HOME,变量值为JDK安装路径;在path变量内容结尾增加:%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;新建系统变量 CLASSPATH,变量值为:.;%JAVA_HOME%\lib;%%JAVA_HOME%%\lib\tools.j 阅读全文
posted @ 2020-10-13 16:56 码路上的奋斗 阅读(160) 评论(0) 推荐(0) 编辑
摘要: rem是指相对于根元素(html)的字体大小的单位, 利用它能实现强大的屏幕适配布局。下面主要应用的是基于js去调整根元素字体大小, 从而实现各个尺寸屏幕的适配; //designWidth:设计稿的实际宽度值,需要根据实际设置 //maxWidth:制作稿的最大宽度值,需要根据实际设置 //这段j 阅读全文
posted @ 2020-10-13 10:06 码路上的奋斗 阅读(405) 评论(0) 推荐(0) 编辑
摘要: /** * render: 渲染函数 * 参数: createElement * 参数类型: Function */ render: function (createElement) { let _this = this['$options'].parent // 我这个是在 .vue 文件的 co 阅读全文
posted @ 2019-08-06 09:38 码路上的奋斗 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-16 10:13 码路上的奋斗 阅读(132) 评论(0) 推荐(0) 编辑
摘要: plugins: [ new webpack.ProvidePlugin({ $: "jquery", jQuery: "jquery", "window.jQuery": "jquery" }) ], externals: { vue : 'Vue', "element-ui": 'ELEMENT 阅读全文
posted @ 2019-05-14 17:10 码路上的奋斗 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 一个图片链接<img src="" /> 想用js 判断url是否有效如果404 就加载默认的图片路径 <img src="xxx" onerror="this.src=默认图地址"/> 图片标签img的 onerror事件 <img src="pic.gif" onerror="javascrip 阅读全文
posted @ 2019-03-28 11:43 码路上的奋斗 阅读(992) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="flashWarp"> <div id="myContent"></div> <!-- 组件控制 --> </div> </template> <style scoped> .flashWarp { position: fixed; top: 0px; 阅读全文
posted @ 2019-03-22 16:06 码路上的奋斗 阅读(163) 评论(0) 推荐(0) 编辑
摘要: // 当前项目(包)入口文件 const http = require('http'); const fs = require('fs'); const path = require('path') const mime = require('mime') const url = require(' 阅读全文
posted @ 2019-03-19 16:06 码路上的奋斗 阅读(286) 评论(0) 推荐(0) 编辑
摘要: postBody = queryString.parse(postBody) 阅读全文
posted @ 2019-03-19 16:05 码路上的奋斗 阅读(317) 评论(0) 推荐(0) 编辑
摘要: mime npm 阅读全文
posted @ 2019-03-16 11:51 码路上的奋斗 阅读(255) 评论(0) 推荐(0) 编辑