摘要:
ios只能识别2019/05/30 20:08:40 这种格式的字段 // 后端传的值是2019-05-30 20:08:40.0 let time = res.data.replace(/\-/g,'/').replace(/\.0/g,'') 阅读全文
摘要:
list="<span>123abc</span>" list = list.replace(/<.*?>/ig,""); 阅读全文
摘要:
input[type='radio'], input[type='checkbox'] { -webkit-appearance: none; //去掉默认样式 border-radius: 0; border: none !important; //去掉边框 } 阅读全文
摘要:
不会改变原来数组的有: concat() 连接两个或更多的数组,并返回结果。 every() 检测数组元素的每个元素是否都符合条件。 some() 检测数组元素中是否有元素符合指定条件。 filter() 检测数组元素,并返回符合条件所有元素的数组。 indexOf() 搜索数组中的元素,并返回它所 阅读全文
摘要:
解决方案: 在主体内容前加一个暗锚: <div class="anmao" id="experts"></div> <div>主体内容</div> .anmao{ height 0; position relative; top -80px; } 阅读全文
摘要:
const detectDeviceType = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? 'Mobile' : 'Desktop'; dete 阅读全文
摘要:
let data = resList.data.data.sort((a, b) => { if (a.noticeData || b.noticeData) { return dayjs(b.noticeDate) - dayjs(a.noticeDate); } }); 阅读全文