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