11 2020 档案
javascript一行代码实现锚点功能
摘要:<template> <div style="height: 100%;"> <div @click="goView('i3')">gogogogogogo</div> <div id="i1" style="height: 100%;">1</div> <div id="i2" style="he 阅读全文
posted @ 2020-11-23 16:14 写最骚的代码 阅读(250) 评论(0) 推荐(0)
个人收藏常用JS方法
摘要:/** *格式化时间 *yyyy-MM-dd hh:mm:ss */ export function formatDate(time, fmt) { if (time undefined || "") { return; } // 兼容ios if ((time + "").indexOf("-") 阅读全文
posted @ 2020-11-10 16:49 写最骚的代码 阅读(187) 评论(0) 推荐(0)
css实现梯形tab切换
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title></title> 阅读全文
posted @ 2020-11-10 11:33 写最骚的代码 阅读(1437) 评论(0) 推荐(0)