摘要: 1.阿里js文件路径 <script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script> 2.文件dom <!DOCTYPE html> <html lang="en"> <he 阅读全文
posted @ 2021-06-11 14:53 董七 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 1.data数据 data () { return { startX: 74, startY: 900 } } 2.methods methods{ drawArcTo (ctx, w, r) { let x = parseFloat(this.startX + '') let y = parseF 阅读全文
posted @ 2021-04-13 10:08 董七 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 1.在components文件夹下新建一个test.vue,global.js代码如下: import Vue from 'vue' function changeStr (str) { return str.charAt(0).toUpperCase() + str.slice(1) } cons 阅读全文
posted @ 2021-02-04 11:25 董七 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 1.移动端页面收起键盘时,底部有空白:失去焦点时,滚动到顶部(IOS) <input type="text" οnblur="window.scrollTo(0, 0);"> 2.Element.scrollIntoView() 方法让当前的元素滚动到浏览器窗口的可视区域内(必须是可滚动页面,才能实 阅读全文
posted @ 2020-07-02 14:27 董七 阅读(714) 评论(0) 推荐(0) 编辑
摘要: 在weui.js源码中找到以下方法: _util2.default.fn.scroll = function (options) { var _this = this; var defaults = _util2.default.extend({ items: [], // 数据 scrollabl 阅读全文
posted @ 2020-04-14 10:13 董七 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 注意点: 凡是页面脱离文档流(包含position:fixed,position:absolute),执行touchmove事件时,取消冒泡事件,默认事件 半透明遮罩层,添加touchmove事件 $(".black-shade").on('touchmove',function(e){ conso 阅读全文
posted @ 2020-03-25 17:56 董七 阅读(777) 评论(0) 推荐(0) 编辑
摘要: <template v-for="(pledgeMovables,pledgeIndex) in protocol.pledgeMovables"> <el-form :model="pledgeMovables.model != 'noForm' ? $data[`${pledgeMovables 阅读全文
posted @ 2020-01-02 16:49 董七 阅读(4000) 评论(0) 推荐(0) 编辑
摘要: 1。router/index.js import Vue from 'vue' import Router from 'vue-router' import Login from '../components/page/login' import Error from '../components/ 阅读全文
posted @ 2019-11-15 15:12 董七 阅读(4688) 评论(0) 推荐(0) 编辑
摘要: 2.js 阅读全文
posted @ 2019-10-16 11:16 董七 阅读(6144) 评论(0) 推荐(0) 编辑
摘要: 1.html 2.data 3.js 4.效果 阅读全文
posted @ 2019-10-09 15:28 董七 阅读(2414) 评论(0) 推荐(0) 编辑