上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: npm install sass-loader@8.0.2 node-sass@4.14.1 阅读全文
posted @ 2022-09-06 14:55 李云蹊 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 转载至https://www.crazyming.com/note/757/ 使用拖拽功能来实现排序。 需要先学习w3cschool 关于拖拽的教程:http://www.w3school.com.cn/html5/html_5_draganddrop.asp 上方的教程是操作dom 的,而我的项目 阅读全文
posted @ 2022-09-05 15:27 李云蹊 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 后端返回的数据内容为: // html反转义 HTMLDecode(text) { var reg = /<[^>]+>/g; if (reg.test(text)) { return text; } var temp = document.createElement('div'); temp.in 阅读全文
posted @ 2022-08-31 10:13 李云蹊 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 单行: width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 多行: text-overflow: -o-ellipsis-lastline; overflow: hidden; text-over 阅读全文
posted @ 2022-08-18 19:56 李云蹊 阅读(56) 评论(0) 推荐(0) 编辑
摘要: vConsole 一个轻量、可拓展、针对手机网页的前端开发者调试面板。 vConsole 是框架无关的,可以在 Vue、React 或其他任何框架中使用。 现在 vConsole 是微信小程序的官方调试工具。 功能特性 日志(Logs): console.log|info|error|... 网络( 阅读全文
posted @ 2022-08-16 13:37 李云蹊 阅读(784) 评论(0) 推荐(0) 编辑
摘要: 添加css自动换行 overflow-wrap: break-word; word-break: normal; line-height: 20px; 阅读全文
posted @ 2022-08-11 14:09 李云蹊 阅读(72) 评论(0) 推荐(0) 编辑
摘要: //横向滚动条 .rongyuChoose { overflow-x: scroll; } .rongyuChoose::-webkit-scrollbar { /*滚动条整体样式*/ width: 100px; /*高宽分别对应横竖滚动条的尺寸*/ height: 6px; } .rongyuCh 阅读全文
posted @ 2022-08-02 15:24 李云蹊 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 1.在视图层模板里面绑定touchstart和touchend事件 <div class="tuWap" @touchstart="touchStart" @touchend="touchEnd"> <div class="zuoCaidan"> <img src="./images/biaoti. 阅读全文
posted @ 2022-07-28 14:30 李云蹊 阅读(568) 评论(0) 推荐(0) 编辑
摘要: /** *获取scrollTop的值,兼容所有浏览器 */ function getScrollTop() { var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scro 阅读全文
posted @ 2022-07-15 17:19 李云蹊 阅读(506) 评论(0) 推荐(0) 编辑
摘要: mounted() { //点击任意位置关闭区域弹窗 document.addEventListener('click', (e) => { //获取弹窗对象 const userCon = document.getElementsByClassName('tanKuang')[0]; const 阅读全文
posted @ 2022-06-29 18:21 李云蹊 阅读(836) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页