![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html
程序员中长的最帅的
在秃头的路上越走越远
展开
-
在一个IIS服务下部署多个VUE项目
项目配置基于vuecli4 vue.config.js文件配置 module.exports = { publicPath:'/wxPublic/',//需要访问的地址 outputDir:'dist/wxPublic' //编译输出的目录 } 路由配置 //不能使用history模式 会403 const router = new VueRouter({ base: '/wxPublic/', routes }) index.html <met原创 2020-09-30 16:28:57 · 731 阅读 · 0 评论 -
html PC端 拖动
该功能计划用于公司对外SDK对接,所有语法基于ES5进行编写,纯JS没有使用其它引用。 click事件会与按下弹起事件冲突所以在弹出事件触发时判断是点击还是拖动。 var downx, downy; //拖动阀值 var threshold = 10; function body_dom_mousemove(e) { if (!(downx <= e.clientX + threshold && downx &原创 2020-09-09 16:55:38 · 203 阅读 · 0 评论 -
vue 图片横向无限滚动 scoll
不过于依赖CSS主要核心代码都在JS中完成 //获取ULDOM let ul = document.getElementById('ul') //UL调用动画 ul.style=`animation:scoll ${this.appData.FullImageUrls.length*5}s linear 0s infinite;` //获取ULDOM元素宽度 let width = window.getComputedStyle(ul).width width = width.slice(0,原创 2020-06-30 18:05:43 · 4215 阅读 · 1 评论